Quite frankly, I'm not sure there is a solution to these kinds of problems with 
wmode.  I'll bet there's already a bug filed, but if not, please file one.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Kong
Sent: Monday, March 09, 2009 2:08 PM
To: [email protected]
Subject: [flexcoders] Re: Is there a way to detect mouse button state without 
tracking events?


Thanks for the suggestion.

The problem is that when wmode=transparent on FF, if mouse button is already 
down (dragging scrollbar), and I exit the stage, MOUSE_LEAVE is not fired (or 
was eaten by a framework handler somewhere). But if mouse button is UP, then I 
do see a MOUSE_LEAVE event, but that doesn't help me.

Problem is that the mouseUP is never processed when I'm outside the stage, so 
on re-entry, buttonDown is always true when it shouldn't be...

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, 
"sunild999999" <sunilbd...@...> wrote:
>
> Hi,
>
> You can use Event.MOUSE_LEAVE to detect when mouse has left the stage.
>
> You can listen for MouseEvent.MOUSE_MOVE if you need to know when the mouse 
> is back.
>
> Can you listen for MOUSE_LEAVE and dispatch your own MOUSE_UP event to stop 
> the list from scrolling?
>
> Sunil
>
>
> --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Dave 
> Kong <davekong@> wrote:
> >
> > This is a very urgent issue for us. =( Any help is deeply appreciated!
> >
> > On Thu, Mar 5, 2009 at 5:14 PM, Dave Kong <davekong@> wrote:
> >
> > > I need to find out at this particular moment, if the mouse button is up
> > > or down.
> > >
> > > Trying to work around the issue with wmode=transparent in FF. If I scroll 
> > > a
> > > list, and drags cursor outside of the player and then releases the button.
> > > That mouseUp event is never captured by Flash Player, so when I move mouse
> > > cursor back, buttonDown is always true for all mouse events. So I need a
> > > workaround on moues re-entry to detect if button is truly down, if not, 
> > > call
> > > the scrollThumb's releaseButton function so it won't keep on scrolling.
> > >
> > > Thanks!
> > >
> > >
> > >
> >
>

Reply via email to