Flash Mouse Movement Question
- Started
- Last post
- 3 Responses
- ScooterRash
Does anyone have a script handy that can check if the mouse is currently moving, and if it is return one variable, and if not return another variable?
I am working on it now, but I figured it would be helpful to see if anyone had it available before I dedicate a while to figuring this out.
email me, or post the code right here if you can.
Thanks!
Scooter
- unknown0
Not gonna post the code... but all you need to do is to check the mouse position, and if it is the same as before add 1 to a counter... if not set the counter to 0... if the counter reaches a certain number, then it's not moving.
- ********0
either do what engage said within the confines of an onClipEvent() handler or within 2 looping frames of an MC.
This looping enables you constantly compare latest and previous mouse positions and hence detect if there was a change
- ScooterRash0
Yep, its all making sense now. Logical operators are your friends. This is what happens to you when you stay up unti 5:30am working on freelance, and then wake up at 8:45 to go to the day job.
thanks guys.
S_R