Hi Everybody, Thanks for your help. However, before I raise the white flag I jsut want to make I am not missing anything...
Excempt from the documentation for the UIObject mouseDown event: "...The event will only be broadcast by the component if the mouse is not also over a child of the component that has a mouseDown listener, or the component is not obscured by another component with a mouseDown listener..." They way I interpret that is that it should not propagate if there is a handler registered? Please let me know if I am minunderstanding anyting ? Best regards, Pedro --- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > 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/

