I don't think it is a bug, but it is a problem.
I suspect that as soon as the
brush tool is set a new empty image is created which overlays the control
containing the
mouseLeave command.
Um . . . No . . . that only happens once one does a
mouseDown with the brush tool.
In that case it is necessary to find the name of the new image and send it backwards so that it is on a lower layer to the button.
This is a problem because, ideally, the script to do this would be in the newly created image.
Putting this sort of thing into the cardScript does not work:
Code: Select all
on mouseUp
set the name of the last img to "ZZ"
end mouseUp
because the new image overlays the card and traps the mouseUp signal.