title: Flash Actionscript 3 passing a number to dynamic text field
body: <p>On my stage I have a dynamic text field (instance name = lives).</p>
  
  <p>In my actionscript I have created a number variable called livesnum. And then beneath that I'm setting the textfields value to be the livesnum variable but I get the following error:</p>
  
  <pre><code>1067: Implicit coercion of a value of type Number to an unrelated type String.
  </code></pre>
  
  <p>My actionscript is as follows :</p>
  
  <pre><code>var livesnum:Number = 4; //Amount of lives
  
  lives.text = livesnum;
  </code></pre>
  
  <p>How would I achieve setting the textfield as the numeric value of the variable? </p>