unexpected behavior 'on mouseup'

Mark Smith mark at maseurope.net
Tue Nov 28 20:49:50 EST 2006


Might it be that when the button is created, although it's script  
contains the on mouseUp handler, the script has not been compiled?

Best,

Mark

On 29 Nov 2006, at 00:27, Jim Ault wrote:

> 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
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list