else cancel Next checkMouseWithin
The intent is to cancel the "checkMouseWithin" command if a box is checked (the "checkMouseWithin" is in a loop that calls itself and continues otherwise)
I get a "cancel: message id is not an integer" error message.
Is there a better way to do this?
Here is the original script as it appears in the current editor:
Code: Select all
on mouseUp
if the hilite of me is true
then send "checkMouseWithin" to group 1
else cancelNextCheckMouseWithin
end mouseUp