1 Reply Latest reply on Dec 6, 2006 11:47 AM by kglad

    Movie TIMER with Total Time and Countdown

      With so many timer scripts out there,

      I'm wondering if anyone knows of a script/movie that does the basics:

      - display the total time of a movie from the beginning.
      - counts down to "zero" value as the movie progresses.

      I'm looking to add this "timer" feature to a captivate movie (end product = swf) with the above functionality. Within the captivate movie is the standard control bar which consists of play, fast forward, rewind, stop, pause, etc. I would like to intergrate the timer with this control bar.

      Example format for a 35 second movie: (beginning time to end) 00:00:35 - 00:00:00

      Any advice or direction is greatly appreciated!

        • 1. Re: Movie TIMER with Total Time and Countdown
          kglad Adobe Community Professional & MVP
          you'll have to hardcode the duration of you swf. there's no way to determine that, in general.

          however, if you have no branching within your swf and it's a swf without significant timelines except for the main timeline, you could continually calculate the duration using _level._totalframes and the frame rate which can be calculated.

          using the duration and getTimer() (to determine the length of time your swf is playing) you can calculate time remaining. from there would need to use the flash string methods to format your display.