manumaniak
Programmer
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
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