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.
juststeveAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Ramy_atefConnect With a Mentor Commented:
u can't pause it ... but when u make the pause , you can save the current time in a variable and use it when u play again

for ex.

pause()
Tnow= getTimer()/1000

when u play again

play()
Tnow=getTimer()/1000 -Tnow

PS.  I'm talking theoretically, i didn't see your work..

the setInterval may also be useful for you, so consider it ..

Regards,
0
 
Ramy_atefCommented:
Hi

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
0
 
juststeveAuthor Commented:
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.
0
All Courses

From novice to tech pro — start learning today.