Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to convert ticks and minutes and seconds

55 views
Skip to first unread message

Carlos Gonçalves

unread,
Aug 26, 2004, 1:03:19 PM8/26/04
to
I know how to put ticks in a place to see it. But now I need to convert
ticks in minutes and seconds to know which time video is.

Thanks


Miguel Rubio

unread,
Aug 26, 2004, 1:47:02 PM8/26/04
to
You should review the help of director... there you could find this:
currentSeconds = the ticks/60
currentMinutes = currentSeconds/60if a tick is 1/second, then just divide
the ticks between 60 and you'll get the seconds. Do it again and then you'll
get the minutes.

If you want to use it in a video you could do something like:

(frame 1)
global timeofstart

on exitFrame me

timeofstart = the ticks

end


(any other frame higher than 1)
global timeofstart, elapsedticks, elapsedseconds, elapsedminutes

on exitframe

go the frame

ticksactuales = the ticks

elapsedticks = the ticks - float(timeofstart)

elapsedseconds = elapsedticks/60

elapsedminutes = elapsedseconds/60

end


I hope it works for you...

Miguel

"Carlos Gonçalves" <carlo...@terra.com.br> escribió en el mensaje
news:cgl565$76o$1...@forums.macromedia.com...

johnAq

unread,
Aug 26, 2004, 8:58:20 PM8/26/04
to
Check out framesToHMS() - an oldie but a goodie

hth

johnAq

0 new messages