Has the cancel message command changed?
Posted: Wed Nov 19, 2008 8:06 pm
I have a stack that I developed a couple of years ago that had a cancel message command in it, I believe it worked then:
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:
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