one way is to change your hit areas dependent on state, if you know what I mean.
in your drop down example, the parents hitstate, with it's action to hide if the mouse leaves it, can be accomplished like this; you have one hit state to bring it out, then you change it so it has a hit area outside of the visual area of the clip with an action on the hit area to return the menu back to where it was. then you're child's mouse events are clear to be detected. you have to make the new hit area outside the menu pretty big. or you can use a bit of AS to do a simple hitTest against the mouse instead of using a hitArea at all.... more than one way to skin this particular cat... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kent Humphrey Sent: 26 January 2006 12:09 To: Flashcoders mailing list Subject: Re: [Flashcoders] nested MC not firing event On 26 Jan 2006, at 11:01, Roman Blöth wrote: > Yes, that unfortunately is the only way to go - Director btw does > this much better: With Lingo you can pass every event, so it > reaches all objects that want to receive them... I'm a Lingo refugee, feel my pain... > But one more comment on the method above: > > Assume you have a onMouseEnter/onMouseLeave method on a background > mc within your container mc, and then place button mcs above this > background mc which want to receive on release events, then when > the mouse pointer hovers over such a button mc, the background mc > will receive a onMouseLeave-event, even though in fact the pointer > still is "within" the background area... Which is what I just discovered with my test. So what is the solution? Surely thing kind of thing is overcome every time someone codes a simple dropdown kinda thing?_______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders