Like Manish, I'm also rusty now on 1.5, but my recollection is the same: Setting event.bubbles = false in your Panel's mouseDown handler should prevent it from bubbling up the parent chain.
And if this doesn't work and we can't figure out how to prevent the bubbling, then you could put protection code in the ancestors' mouse handlers to check whether event.target is what you expect it to be. In Flex 2.0, you can use event.stopPropagation() or event.stopImmediatePropagation() to prevent the bubbling. The difference is that stopPropagation() will allow the remaining handlers on the same object to execute. - Gordon -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Monday, March 13, 2006 8:09 AM To: [email protected] Subject: Re: [flexcoders] Re: Capture events a la the underlying transparent window from PopUpManager On 3/13/06, dopenhagen <[EMAIL PROTECTED]> wrote: > Sorry, no - its actually the opposite I am trying to achieve. Where the > underlying layers do not recieve the event. > > Part of my MXML: > > <mx:Panel [snip] > mouseDown="this.shoppingcartViewHelper.onMouseDown(event)" [snip] > The questions is how do I get this panel to capture all mouse-events > and NOT bubble them on to the lower layers? Sorry, I really don't remember how this worked in Flex 1.5, but can you try setting event.bubbles to false (in the mouseDown handler)? Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

