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

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to