Link to home
Start Free TrialLog in
Avatar of juststeve
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.
Avatar of Ramy_atef
Ramy_atef

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
Avatar of juststeve

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.
ASKER CERTIFIED SOLUTION
Avatar of Ramy_atef
Ramy_atef

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial