Flash: Correctly handling click-and-drag outside the browser?
Posted
by David Wolever
on Stack Overflow
See other posts from Stack Overflow
or by David Wolever
Published on 2010-05-31T14:21:18Z
Indexed on
2010/05/31
14:23 UTC
Read the original article
Hit count: 218
What's the correct way to detect, from Flash, when someone has started a drag within the browser (eg, a MOUSE_DOWN
event), dragged the mouse outside the browser window, released the button, then moved the mouse back over the browser?
For example (assuming StackOverflow was a Flash application):
I've tried the "obvious" thing, checking event.buttonDown
in the MOUSE_MOVE
handler, but even though the mouse button is up, event.buttonDown
is true
in step 2 (above).
So, is there any other way to check the "real" status of the mouse button? Or any other way to handle this situation?
© Stack Overflow or respective owner