title: Where is that syntax error on line 2?
body: <p>Ok, so in the following actionscript 3.0 code there is a syntax error on line 2, but i don't know what that is.
  I'm a beginner so could someone please help me on this?    </p>
  
  <pre><code>var numberToCast:Number; 
  </code></pre>
  
  <p>on the following line there is a syntax error, says the compiler, and i haven't a clue what that is</p>
  
  <pre><code>for (numberToCast = –1; numberToCast&lt;2; numberToCast++){ 
  
  trace("Boolean(" + numberToCast +") is " + Boolean(numberToCast)); 
  
  }
  </code></pre>