开发者

ActionScript Mouse_Move Only While Mouse_Down?

开发者 https://www.devze.com 2022-12-31 22:39 出处:网络
i\'m attempting to implement a mouse event 开发者_如何转开发where Mouse_Move can only occur if Mouse_Down.i could introduce a boolean that would toggle during Mouse_Down and Mouse_Up that could work,

i'm attempting to implement a mouse event 开发者_如何转开发where Mouse_Move can only occur if Mouse_Down. i could introduce a boolean that would toggle during Mouse_Down and Mouse_Up that could work, but is there a better way, perhaps a more official way, of doing this?


You could simply add the the MOUSE_MOVE event listener on MOUSE_DOWN, and then remove it on MOUSE_UP.

Hope that helps.

0

精彩评论

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

关注公众号