Nov 4, 2001 #1 duponty Instructor Oct 25, 2000 101 CA Hi, how can I detect that the mouse is not moving? I know it refers to a temp variable and substract temp-_xmouse but I cannot do it... thanks
Hi, how can I detect that the mouse is not moving? I know it refers to a temp variable and substract temp-_xmouse but I cannot do it... thanks
Nov 5, 2001 #2 wangbar Programmer Jul 23, 2001 1,906 GB You can achieve this with a pair of clip events, one is triggered on mouse moves, the other checks every frame to see if the first clip is triggered. onClipEvent(mouseMove){ _root.moved=true; } onClipEvent(enterFrame){ if (!_root.moved){ trace("Mouse is not moving" } else { trace("Mouse just moved" _root.moved=false; } } Upvote 0 Downvote
You can achieve this with a pair of clip events, one is triggered on mouse moves, the other checks every frame to see if the first clip is triggered. onClipEvent(mouseMove){ _root.moved=true; } onClipEvent(enterFrame){ if (!_root.moved){ trace("Mouse is not moving" } else { trace("Mouse just moved" _root.moved=false; } }