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.

flash can’t keep trap of your mouse if it’s outside the stage…
just do a script that will check if the mouse is moving inside…