Behaviors
Beat Cornaz
B.Cornaz at gmx.net
Mon Oct 26 14:37:33 EDT 2009
Thanks for your answer Trevor. It works good. I found that it can be
even 'easier' :
The first part (on mouseUp pBtnNum) of the Behavior Script is not
even needed.
===============
Behavior Script
===============
on mouseUp pBtnNum -- This handler can be left out.
_mouseUp pBtnNum
end mouseUp
command _mouseUp pBtnNum -- This handler alone will do the trick
DoA
end _mouseUp
----------------------------
I start to get the idea of behaviors. They behave like commands or
functions, but can be accessed from everywhere and are restricted to
act only in response to certain objects (the ones with that behavior
assigned) with a certain message (like mouseUp).
So the commands and functions can be more specific, less general than
say in a library . Great.
Thanks,
Beat
More information about the use-livecode
mailing list