Basic question about behaviors

Bob Sneidar bobsneidar at
Tue Aug 25 11:42:28 EDT 2020

Try the execution contexts. And yes, this me will return the behavior object itself.

Bob S

On Aug 24, 2020, at 8:18 PM, prothero--- via use-livecode <use-livecode at<mailto:use-livecode at>> wrote:

I have assigned a behavior to a button. The behavior button/source is on a different stack. It works fine. But a click on a movie player, on the same card, triggers the mouseUp handler in the behavior, which I don’t want to happen. It seems odd that this would happen, but I need to fix it.

My solution is to test whether the target is the button, or something else. I solved it by trapping the mouseUp message in a script on the player. However, I was trying to figure out how to get the behavior to give me the source/origin of the mouseUp message. I can get the name of the card using “the owner” but can’t seem to find the right syntax to get the name of the button that the behavior is attached to.

This is probably trivial, but I’d appreciate any help.


William A. Prothero
Santa Barbara, CA. 93105

More information about the use-livecode mailing list