Basic question about behaviors

prothero at prothero at
Mon Aug 24 23:18:51 EDT 2020

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