Basic question about behaviors

Brian Milby brian at milby7.com
Mon Aug 24 23:29:41 EDT 2020


Wouldn’t it just be “me”?  And “this me” should be the behavior object.

Sent from my iPhone

> On Aug 24, 2020, at 11:19 PM, prothero--- via use-livecode <use-livecode at lists.runrev.com> 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.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list