No mouse movement

I need help coming up with a AS that if there is no mouse movement a function will be called. I have the following code but it does not always work. If the user moves the mouse too fast out of the SWF this code does not get called. Therefore the images in here do not get reseted.

var myListener = new Object ();
myListener.onMouseMove = function () {
    if ((_root._xmouse>=255) or (_root._ymouse>=255) or (_root._xmouse<=11) or (_root._ymouse<=11)) {
        reset ();
    }
    trace (_xmouse);
};
Mouse.addListener (myListener);