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.

Use 60 for the tempo parameter:

-- Welcome to Director --
put HMStoFrames("00:00:13",60,0,0)
-- 780
put HMStoFrames("00:00:01",60,0,0)
-- 60
put HMStoFrames("00:01:00",60,0,0)
-- 3600



--
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!]

Reply via email to