player hints
Scott Rossi
scott at tactilemedia.com
Thu Jun 2 14:44:16 EDT 2005
Recently, Jon wrote:
> Is there any way to get a message from a Player every second, or so, so
> that I can put up a message indicating the current position? I see the
> Callbacks property, but I don't want to load it with 1000 entries if I
> can avoid it. I suppose I could enter one value and then modify it when
> the event occurs for the first time.
Instead of using the player itself to do this, you could use a script. For
example, in your card script, the following would show the elapsed seconds
of playback:
on trackPlayer
put (the currentTime of player "myPlayer" div 600) into fld "timer"
send "trackPlayer" to me in (1 - (the long seconds mod 1)) seconds
end trackPlayer
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list