At 12:43 4/12/2001, Rodrigo Peres wrote:
>on 4/11/01 7:42 AM, Mark A. Boyd at [EMAIL PROTECTED] wrote:
>
> > At 01:33 4/11/2001, Rodrigo Peres wrote:
> >> hi to all,
> >>
> >> How the best way to convert seconds to ticks?? I'm usinng th
> HMSToframes to
> >> convert 00:00:13 to seconds and then put it * 60 to get the ticks, but
> it's
> >> not working. What I really need is: my user type a time in format 00:00:00
> >> and then I use the movietime property to change the position of a
> quicktime.
[snip]
>Sorry, but I think I didn't understand. If i use put movietime in my movie o
>13 seconds, director replies 824 ticks?????
>-- put HMStoFrames("00:01:00",60,0,0) -- but It doesn't means one minute
>(00:01:00)?? so how it marks 3600???
Odd that we had a 4-day delay since you sent this reply, but...
834 tics is less than 14 seconds (840 tics) and more than 13 seconds (780
tics). It works out to "00:00:13.54" seconds.
1 minute in movieTime is 3600 tics. (60 tics per second * 60 seconds) So,
if the user types in "00:01:00" you can use the HMStoFrames function to set
the movieTime of the sprite to 3600. If you want the QT to go to 00:00:13
seconds you would convert that to tics and set the movieTime to the result.
userTime = member("input").text
qtTime = HMStoFrames(userTime,60,0,0)
sprite(1).movieTime = qtTime
or
sprite(1).movieTime = HMStoFrames(member("input").text,60,0,0)
If you want to convert movieTime into HMS, use framesToHMS. This is a
convenient way to display the QT's current time in a field or text member.
More details about digital video and the HMStoFrames/framesToHMS functions
are available in the docs.
--
Mark A. Boyd
Keep-On-Learnin' :)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]