-- Check for Mouse Movement -- Ken Loge - http://diginoodles.com property pLastMousePos -- the position of the mouse just before the frame is rendered property pCurrentMousePos -- the current position of the mouse after the frame is rendered on prepareFrame me -- store mouse position before the frame is rendered pLastMousePos = _mouse.mouseLoc end on exitFrame me -- get the current mouse position pCurrentMousePos = _mouse.mouseLoc -- check for mouse movement if pCurrentMousePos <> pLastMousePos then trace("Movement detected!") else trace("No movement detected...") end if -- stay on the current frame _movie.go(_movie.frame) end