unexpected behavior 'on mouseup'

Ken Ray kray at sonsothunder.com
Wed Nov 29 09:14:22 CST 2006


On 11/28/06 6:27 PM, "Jim Ault" <JimAultWins at yahoo.com> wrote:

> Why does the card script run when clicking the button that contains the
> script:
> 
> on mouseUp
> 
> end mouseUp

Because in actuality, it *doesn't* contain the script. The new button has no
script, but when you open the script in the Script Editor, Rev adds the "on
mouseUp ... end mouseUp" for your (theoretical) convenience.

So if you cancel out of the Script Editor and don't Apply, the button
remains with no script in it, so the message passed through the hierarchy.


Ken Ray
Sons of Thunder Software, Inc.
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com





More information about the use-livecode mailing list