Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

desperately need some inspiration -> timer for videos CMs wanted!!

Status
Not open for further replies.

manumaniak

Programmer
Aug 21, 2001
9
CH
Hi everybody - I am trying to build a sort of timer for a quicktime video and can't figure out how to do it...: the user should see at the beginning of the video the whole duration of the video, and then it should count down the minutes and seconds until the video is finished (like the timer in the regular Quicktime Status Bar, just the other way round)!
what i did till now: (on a frameScript)
1. the playing time of the video
--> wholeTime = member(video).duration
2. where the video is
-->timeGone = sprite(40).movieTime
3. how much is left
--> timeLeft = wholeTime - timeGone
4. get the ticks into seconds
--> timeSeconds = timeLeft / 60

and now starts the problem! I get back a number which displays the seconds of the video to be played! if I divide the seconds thru 60 I get minutes, which is perfect, but how can I force director to start counting down from 60 to 0, and then count one minute down (how watches actually count) and not from 99 to 0???

If someone knew an answer on this problem i'd be very happy & releaved!!!

greetings to all - manuel

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top