开发者

Catching an onReleaseOutside for the stage

Firstly I feel this question is not a duplicate for : Easiest implementation of onReleaseOutside in AS3?

Now, the problem , I want to do some action when the mouse_down happened inside the stage, but the mouseup happened outside it. e.g check google finance charts, try dragging the change range divider and then make the drag such that your mouse exists the browser screen, and then do a mouse_up outs开发者_Go百科ide the browser, this will trigger some action inside the stage , i.e make the range stick to the position it was, when the mouse exited the window.)

How can this be done in Flex 3/4??

Thanks,

Neeraj


Try this one:

stage.addEventListener(Event.MOUSE_LEAVE, check);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜