repeat until the mouseClick
Brent Anderson
brentj84062 at gmail.com
Sun Apr 22 19:18:34 EDT 2007
Hello.
There are no properties or messages that I know of that could be
intercepted in the middle of a repeat loop. The desired functionality
could be reached through a local or global variable being flagged in
a keyDown handler and in the middle of the loop having an exit
statement, like so...
local keyFlag
on keyDown
put true into keyFlag
pass keydown -- Unless you don't want to pass the message, of course
end keyDown
on myHandler
...
put false into keyFlag
repeat until the mouseclick
if keyFlag is true then exit repeat
end repeat
...
end myHandler
Thanks,
Brent Anderson
Fiery Ferret
www.fieryferret.com
More information about the use-livecode
mailing list