currentTime not being updated in standalone... arggghh!

Josh Mellicker josh at dvcreators.net
Fri Apr 28 00:36:42 EDT 2006


Never mind!

ON updateTC
     put convertTime(round(the currentTime of player "Player"/the  
timeScale of player "Player")) into fld "mt"
     send "updateTC" to me in 50 milliseconds
END updateTC

did the trick.


On Apr 27, 2006, at 6:59 PM, Josh Mellicker wrote:

> I have this handler that is called once when a movie is started:
>
> ON updateTC
>     put convertTime(round(the currentTime of player "Player"/the  
> timeScale of player "Player")) into fld "mt"
>
>     IF ",updateTC," is not in the pendingMessages THEN send  
> "updateTC" to me in ((1 - (the long seconds mod 1)) / 5) seconds
>     -- we send this message well settled with the internal clock  
> each 200 milliseconds
> END updateTC
>
>
> (from Eric Chatonet's excellent archive)
>
>
> It works fine in Rev, but the standalone simply refuses to update  
> the timecode display.
>
> I barely understand the "idler" concept, so maybe I am doing  
> something wrong that does not work in a standalone?
>
> Can anyone point me to other examples, or a different way to do an  
> "ongoing background process" that will update the display when the  
> movie is playing?
>
>
> Arrrgghhhh....
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list