# Can flash detect when cursor is out of the flash environment?

**URL:** https://forum.kirupa.com/t/can-flash-detect-when-cursor-is-out-of-the-flash-environment/75122
**Category:** flash
**Created:** [January 6, 2005, 5:14am UTC](https://forum.kirupa.com/t/can-flash-detect-when-cursor-is-out-of-the-flash-environment/75122 "2005-01-06T05:14:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pjstroud](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pjstroud](https://forum.kirupa.com/u/pjstroud)
#### Post date: [January 6, 2005, 5:14am UTC](https://forum.kirupa.com/t/can-flash-detect-when-cursor-is-out-of-the-flash-environment/75122/1 "2005-01-06T05:14:53Z")

</div>

I have a swf embedded in the center of an html document. Can flash detect when the cursor is outside the boundries of the swf (in the html area)?

I have a function running in the swf using onClipEvent(enterFrame) and if the cursor leaves the swf two quickly, the function keeps running, even though the cursor is not over the swf.

Thanks.
