i just started learning actionscript 3 and i have a question. I am trying to create a game but i am not sure on how to create a global update for a variable? for example if i put this:
myNumber+=1;
txt.text = myNumber.toString();
It only updates once and stops when the game starts. I would like a constant update. How is this possible? is there an update() method this needs to go under?
I suggest you look at a few tutorials given the questions you have asked.
Here is a great one about games. It goes through the process from start to finish.
http://gamedev.michaeljameswilliams.com/