Detect Mouse leave stage while dragging in Actionscript 3

后端 未结 8 614
我寻月下人不归
我寻月下人不归 2020-12-05 05:27

Event.MOUSE_LEAVE is great in Actionscript 3, but it doesn\'t seem to fire if the user is holding their left (or right for that matter) mouse button down.

Is there a

8条回答
  •  鱼传尺愫
    2020-12-05 06:07

    If your doing something where you are dragging a MovieClip this seems to work nicely.

    stage.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
    

    EDIT - never mind

提交回复
热议问题