Canceling pending messages
Jim Hurley
jphurley at jps.net
Fri Jan 4 08:30:00 EST 2002
The following script is recommended in the Rev. web site as
preferable to the use of the idle message:
on showPlayerCurrentTime
put the currentTime of player "My Player" into field "Player Progress"
send "showPlayerCurrentTime" to me in 500 milliseconds
end showPlayerCurrentTime
In this way, "showPlayerCuttentTime is repeated every 500 milliseconds.
My question is: How would one stop this cycle? How does one
interrupt the send routine? What part of the "pendingmessages" does
one "cancel"?
With the above handler running I get find two lines in the pending
messages as follows:
6230,1010150413.003374,mouseUp,button id 1003 of card id 1002 of
stack "Untitled 1"
6231,1010150412.65895,revScriptEdit,button id 1003 of card id 1002 of
stack "/Macintosh HD/Revolution-1.1.1-Classic-B1/components/global
environment/revlibrary.rev"
Furthermore the two leading items in each line (6230 and 6231) change
with time.
--
Jim Hurley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020104/a09179cd/attachment.html>
More information about the use-livecode
mailing list