Retiarius wrote:

> One thing I've read is that Revolution doesn't support the idle event like
> HyperCard or SuperCard and I'm wondering how one would approach scripting a
> field that would constantly display the currentTime of a player.

It does do the idle event exactly like SC and HC; the documentation you read
means they just recommend thinking twice about it before using it, because
using the "SEND message TO object IN time" syntax is a new alternative that
works better for many tasks. If your player's time resolution is 1 second,
and the script that updates the field is called update, for example, that
script could end with "send update to me in 1 second". The cycle would be
started by calling update once when entering the card or starting the player
or whatever.

It can be done with idle, and in some cases I think idle is still the best
solution. But here, an advantage is that all the stuff the field does is
kept in the field, and later if you need additional objects that work at
regular intervals, they can be different intervals. With idle, there is only
one interval and extra scripting is required to divvy it up to different
objects with different intervals.

Curry Kenworthy


Reply via email to