Detecting if mouse is outside frame

Is there anyway to detect if the mouse is outside the stage area?

I have been using the _xmouse and _ymouse coordinates to do this, but have noticed that if you move the mouse too fast it doesn’t detect that its moved outside the stage area.