unexpected behavior 'on mouseup'

Jim Ault JimAultWins at yahoo.com
Tue Nov 28 19:27:48 EST 2006


Do four simple steps:

[1] Make a new mainstack
[2] set the card script to

on mouseUp
   put the long id of the target && the seconds
end mouseUp

[3] Make a new button
[4] Choose Browse mode
---
Why does the card script run when clicking the button that contains the
script:

on mouseUp

end mouseUp

It is as if the button has 'pass mouseUp' implied.
Now add any character to the button script, such as a space, click apply,
and no message is passed (but the script is the same)

Not a show-stopper, but fooled me when using a transparent button to block
mouse clicks.  Perhaps this is already bugzilla'd, or is expected behavior.

Jim Ault
Las Vegas





More information about the Use-livecode mailing list