Script being inherited by other objects; bug?

Dave Cragg dave.cragg at lacscentre.co.uk
Tue Nov 6 17:37:38 EST 2007


On 6 Nov 2007, at 22:35, User wrote:

> Thanks, Dave,
>
>> Are the mouseEnter/mouseLeave handlers in the group script or the  
>> image script? If they are in the group script, this doesn't sound  
>> like a bug (apart from the crash).
>>
>> If you have backgroundBehavior turned on, messages will pass from  
>> object to card to background (group). So a mouseEnter message on  
>> any object on the card will be handled by the background script  
>> (if it isn't handled earlier).
>
> But, wouldn't this require a mouseEnter etc. handler in those  
> objects? There isn't one.

No. A handler in the other object would only trap the message.  
Whenever the mouse enters any object, a mouseEnter message is passed.  
The first mouseEnter handler found in the message path will handle  
the message.

Cheers
Dave



More information about the use-livecode mailing list