Player Focus and _xmouse, _ymouse, and onMouseMove
DIGG IT!
0
Comments
Published
Thursday, June 10, 2004
at
9:06 AM
.
There is a very subtle behavior within onMouseMove, _xmouse, and _ymouse with regard to Flash Player focus. It seems these values continue to update outside the player boundary when the mouse is depressed!&
If your mouse is depressed within the Flash Player and you exit the boundary dragging, the player will receive updates to _xmouse, _ymouse, and onMouseMove outside of the player until the mouse is released. This was added in Flash Player 6 and works seamlessly in the release F6 and F7 players.
Code:
onMouseMove = function(){ trace('onMouseMove _xmouse:'+_xmouse+' _ymouse:'+_ymouse)}
Test:
Depress your mouse and drag outside of the player boundary. The onMouseMove should continue to fire. As soon as you release the mouse, onMouseMove no longer fires and _xmouse/_ymouse no longer update.
Kudos to the engineers at Macromedia who made this happen. It was a most unexpected and rewarding find within the Player in quite a while. It is one of those things you don't think about until your scrollbar freezes when it is dragged outside the player boundary.
Cheers,
Ted ;)

0 Responses to “ Player Focus and _xmouse, _ymouse, and onMouseMove ”
Post a Comment