[flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-10 Thread Dave Kong
Thanks, Alex

There are a few bugs, this seems to be a core one: 
https://bugs.adobe.com/jira/browse/FP-289

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Dave Kong
 Sent: Monday, March 09, 2009 2:08 PM
 To: flexcoders@yahoogroups.com
 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 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 sunild99 sunilbdave@ 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 flexcoders@yahoogroups.commailto: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!
   
   
   
  
 





[flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-09 Thread Dave Kong
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 flexcoders@yahoogroups.com, sunild99 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 flexcoders@yahoogroups.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!
  

  
 





RE: [flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-09 Thread Alex Harui
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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dave Kong
Sent: Monday, March 09, 2009 2:08 PM
To: flexcoders@yahoogroups.com
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 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
sunild99 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 flexcoders@yahoogroups.commailto: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!
  
  
  
 




[flexcoders] Re: Is there a way to detect mouse button state without tracking events?

2009-03-08 Thread sunild999999
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 flexcoders@yahoogroups.com, Dave Kong davek...@... 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 davek...@... 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!