Skip to main content
Participant
October 5, 2006
Question

Show elapsed time/total time from external loaded swf

  • October 5, 2006
  • 1 reply
  • 360 views
I've got a movieclip on the root level with an area to load external swfs and have start/stop controls for the loaded swf. What I'm looking to do is use Actionscript to detect the total time of the loaded swf and display it near my movie controls as well as the elapsed time of the loaded clip. Whatever external loaded swf goes into the movieclip I want this display to show.

Any help would be much appreciated. Thanks in advance.
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 5, 2006
you can use getTimer() to track time. setting a startTime=getTimer() and subtracting from a current (or later) getTimer() will yield an elapsed time.
bonzomn65Author
Participant
October 9, 2006
Thanks for the help; I'm fairly new to ActionScript so if you could be a bit more detailed in your response regarding the code involved I'd appreciate it. Thanks.