Without Waiting

Scott Rossi scott at tactilemedia.com
Tue Jul 25 00:59:02 EDT 2006


Recently, Bridger Maxwell wrote:

> Is it possible to have two handlers, and to call the second handler from
> within the first handler, and have the first handler keep executing without
> waiting for the second handler to finish?

This depends on what you're doing in the second handler.  You might be able
to do something like this:

on Handler1
   send "doHandler2" to me in 0 millisecs -- TO START QUICKLY
   beep
end Handler1

on doHandler2
   doSomeStuffThatTakesALongTime
end doHandler2

...but you'll have to test to see if this works for you.  What you're trying
to do is threading, and while Revolution does not inherently provide any
means for threaded events, using "send in..." can sometimes accomplish
similar results.

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