开发者

Catching an onReleaseOutside for the stage

开发者 https://www.devze.com 2023-03-24 00:44 出处:网络
Firstly I feel this question is not a duplicate for : Easiest implementation of onReleaseOutside in AS3?

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

精彩评论

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