flash release mouse capture on mouse out
I have a flash app loaded in an iframe. User mouses down in flash and goes outside of stage. When user goes outside of stage, is there a way to release the mouse capture from flash so that parent receives further mouse events and not the flash app?
In Firefox and Chrome, parent doesn't receive events until the user mouse开发者_StackOverflow社区s up In IE, parent receives event when the user goes outside of stage.
Try using Event.MOUSE_LEAVE:
stage.addEventListener(Event.MOUSE_LEAVE,mouseLeaveHandler);
function mouseLeaveHandler(e:Event):void {
trace("mouse left");
}
精彩评论