# Detect if the mouse is outside the flash window

**URL:** <https://forum.kirupa.com/t/detect-if-the-mouse-is-outside-the-flash-window/315847>\
**Category:** flash\
**Created:** [November 5, 2010, 4:05pm UTC](https://forum.kirupa.com/t/detect-if-the-mouse-is-outside-the-flash-window/315847 "2010-11-05T16:05:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SticksStones](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Post date:** [November 5, 2010, 4:05pm UTC](https://forum.kirupa.com/t/detect-if-the-mouse-is-outside-the-flash-window/315847/1 "2010-11-05T16:05:37Z")

</div>

I have a background which scroll’s when the mouse is at the edge of the flash window - RTS style. If the mouse cursor goes outside the window I want it to stop scrolling, but flash reads the cursor position as the last place it was, when it was still within the flash window.

I know I’ve done this before, but I can’t at all remember how!

Is there an event I can listen for or something similar?

Thanks
