5 Replies Latest reply on Apr 30, 2013 4:10 PM by elainecc

    How to increment value on stage?

    desziner Level 1


      I am trying to make a game where when the user presses a button it increments a score on stage.

      So far I set a text field on stage with name counter:


      //set the value of a Symbol variable

      sym.setVariable("score", "0");



      How do I code a button to increment this score each time it is clicked?