Hey. You know in John's games there are times that count how long you play for? How do you do that in AS2? I just want it to count how many seconds you played for. Thanks in advance.
There is a function 'getTimer()' in the flash.utils package that can tell you how many milliseconds have elapsed since the start of the program. I think this function is also in Actionscript 2, but I'm not 100% positive on that.
Steps is by far the easiest, but if you looking for accuracy, it won't help much as .swfs never play the exact frame rate as is specified in the .fla. As far as I can remember, there are ways to get exact times, but by the time they return something, they become inaccurate. As long as you're staying above 100ms intervals and precision is not dire, there's no better way to go than just a setp counter as john suggested.