juststeve
asked on
Seek as2 code to display elapsed time
I need a utility to help in testing a new project...looking for a dead simple way to display time elased since beginning of the movie.
ASKER
agreed....thx....
Now to complicate things a bit. I'm developing a slideshow where knowing the elapsed time will be required to pinpoint exactly where stuff is occuring so I can determine where the next stuff should occur. I have a 'Pause' button that will stop all the currently running tweens. How can I code this timer so it pauses too.
The tweens are coded, not timeline-based.
Now to complicate things a bit. I'm developing a slideshow where knowing the elapsed time will be required to pinpoint exactly where stuff is occuring so I can determine where the next stuff should occur. I have a 'Pause' button that will stop all the currently running tweens. How can I code this timer so it pauses too.
The tweens are coded, not timeline-based.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
myTime= getTimer()/1000
it will return the elapsed since the SWF file started playing, I divided by 1000 as it returns in milliseconds
can't be more simple than this :)
Regards,
Ramy