title: Action Script 3.0 Score Counter
body: <p>I have been trying to make a score counter for a small game where the user clicks on a button on the stage, each time the user presses the button the score increments by 10, however I cannot get the score to display on the dynamic text field. What am I doing wrong?</p>
  
  <pre><code>var score:uint;
  //scoreCounter is the instance name of the dynamic text box
  
      function updateScore():void{
       score += 10;
       scoreCounter.text = score.toString();
  }
  </code></pre>