I tried to add this on card and stack script:
Code: Select all
on mouseUp
answer "On mouseUp handler it works!"
end mouseUp
on mouseDown
answer "On mouseDown handler it works!"
end mouseDown
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
answer "On mouseUp handler it works!"
end mouseUp
on mouseDown
answer "On mouseDown handler it works!"
end mouseDown
Code: Select all
on mouseUp
set the visible of group "myGroup" to false
end mouseUp
Code: Select all
on hideTheGroup
set the visible of group "myGroup" to false
end hideTheGroup
Actually a new button has no script. LC inserts the empty mouseUp handler template as a convenience the first time you open the button script for editing. If you hit the Enter key, you end up saving the blocking empty handler.SparkOut wrote: By default, a new button will have an empty on mouseUp handler. That would trap the mouseUp message stopping it from reaching the card but do nothing, unless you delete the empty handler or pass mouseUp within it.