groups events

Sarah sarahr at genesearch.com.au
Sun Jun 16 19:00:01 CDT 2002


I'm not sure that a group actually gets these messages. The individual 
members of the group do and the messages can be passed to the group 
script, but in that case, "the target" is the original object, not the 
group itself.

You could make a transparent button the same size as the group but 
behind all the other objects. Then it would receive and pass all the 
messages.

Cheers,
Sarah


On Friday, June 14, 2002, at 01:01  PM, Trevor DeVore wrote:

> I am trying to perform some actions based on mouseUp and mouseLeave 
> events
> associated with a group.  If a user clicks on the group I would like to 
> show an
> element in the group.  When the mouse leaves the entire group I would 
> like to
> hide this element.  I have the following code below but these events 
> don't seem
> to be processed for the group object, just the controls within the 
> object.
>
> Does anyone have any suggestions on how to go about this?  Below is the 
> code I
> am using.
>
> on mouseUp
>   put the short name of the target && " mouseUp"
>   switch the short name of the target
>     case "navigationGroup"
>       set the visible of field "myField" to true
>   end switch
> end mouseUp
>
> on mouseLeave
>   put the short name of the target && " mouseLeave"
>   switch the short name of the target
>     case "navigationGroup"
>       set the visible of field "myField" to false
>   end switch
> end mouseLeave
>
>
> Trevor DeVore
> Blue Mango Multimedia
> trevor at mangomultimedia.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list