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?
+3
A:
You could simply add the the MOUSE_MOVE event listener on MOUSE_DOWN, and then remove it on MOUSE_UP.
Hope that helps.
Tyler Egeto
2010-05-26 16:17:08
that's better than a boolean :)... thanks
TheDarkInI1978
2010-05-26 16:37:27