# AS: if the mouse isn't over the stage?

**URL:** <https://forum.kirupa.com/t/as-if-the-mouse-isnt-over-the-stage/49035>\
**Category:** flash\
**Created:** [April 19, 2004, 3:14pm UTC](https://forum.kirupa.com/t/as-if-the-mouse-isnt-over-the-stage/49035 "2004-04-19T15:14:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nik](https://avatars.discourse-cdn.com/v4/letter/n/6de8d8/32.png) [@nik](https://forum.kirupa.com/u/nik)\
**Post date:** [April 19, 2004, 3:14pm UTC](https://forum.kirupa.com/t/as-if-the-mouse-isnt-over-the-stage/49035/1 "2004-04-19T15:14:12Z")

</div>

i have a swf in an html page. on the button in the flash file i have a function that triggers another function if the mouse isn’t over the button anymore. As long as i stay inside the swf everything works fine, but if i’m not over the button and the swf (if my mouse, say, at the bottom of the html page- flash doesn’t know what i’m talking about  
is there a script that would say something along these lines–if the mouse isn’t over the stage… do this?  
Thanks in advance
