Great suggestion, I’ll definitely
give it a shot on my end … much appreciated, thanks!
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dopenhagen
Sent: Tuesday, March 14, 2006 4:13
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Capture
events a la the underlying transparent window from PopUpManager
Hi Everybody,
If its a hack, workaround or the way its suppose
to work does not
matter as I have found a solution that works.
Just as the documentation for the PopUpManager
suggests, the solution
is to put a independent layer underneath the layer
containing the
components and then disable this layer. This
disabling will
eventually intercept all user input and discard
them as it is
disabled.
Thanks anyways for the help everybody.
Cheers,
Pedro
--- In flexcoders@yahoogroups.com,
"dopenhagen" <[EMAIL PROTECTED]>
wrote:
>
> 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 flexcoders@yahoogroups.com,
"Gordon Smith" <gosmith@> 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: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Manish Jethani
> > Sent: Monday, March 13, 2006 8:09 AM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Capture
events a la the underlying
> > transparent window from PopUpManager
> >
> > On 3/13/06, dopenhagen
<dopenhagen@> 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
SPONSORED LINKS
YAHOO! GROUPS LINKS