# Detecting if mouse is outside frame

**URL:** <https://forum.kirupa.com/t/detecting-if-mouse-is-outside-frame/45162>\
**Category:** flash\
**Created:** [March 11, 2004, 3:47pm UTC](https://forum.kirupa.com/t/detecting-if-mouse-is-outside-frame/45162 "2004-03-11T15:47:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![straymuffin](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@straymuffin](https://forum.kirupa.com/u/straymuffin)\
**Post date:** [March 11, 2004, 3:47pm UTC](https://forum.kirupa.com/t/detecting-if-mouse-is-outside-frame/45162/1 "2004-03-11T15:47:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 11, 2004, 6:46pm UTC](https://forum.kirupa.com/t/detecting-if-mouse-is-outside-frame/45162/2 "2004-03-11T18:46:18Z")

</div>

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…
