开发者

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");
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜