# Mouse outside of stage

**URL:** https://forum.kirupa.com/t/mouse-outside-of-stage/266315
**Category:** flash
**Created:** [July 18, 2008, 9:52am UTC](https://forum.kirupa.com/t/mouse-outside-of-stage/266315 "2008-07-18T09:52:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sceneshift](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sceneshift](https://forum.kirupa.com/u/sceneshift)
#### Post date: [July 18, 2008, 9:52am UTC](https://forum.kirupa.com/t/mouse-outside-of-stage/266315/1 "2008-07-18T09:52:39Z")

</div>

Hi,

I’m developing a application which has a “drag” style mouse navigation. On MOUSE\_DOWN the app takes the mouseY and on MOUSE\_UP it is reset… I then have my enter\_Frame event doing the math to create a “click drag” effect.

The problem is, if the users mouse leaves the stage whilst they have the mouse button held, let go of the button and then return to the stage, the MOUSE\_UP event does not fire because the button was released outside of the flash application…

Is there a way I can detect if the users mouse leaves the stage area?
