# Detecting When the Mouse Leaves the Movie

**URL:** <https://forum.kirupa.com/t/detecting-when-the-mouse-leaves-the-movie/227883>\
**Category:** flash\
**Created:** [June 3, 2007, 3:08pm UTC](https://forum.kirupa.com/t/detecting-when-the-mouse-leaves-the-movie/227883 "2007-06-03T15:08:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![txeo](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@txeo](https://forum.kirupa.com/u/txeo)\
**Post date:** [June 3, 2007, 3:08pm UTC](https://forum.kirupa.com/t/detecting-when-the-mouse-leaves-the-movie/227883/1 "2007-06-03T15:08:51Z")

</div>

This is my first post, so Hello to everybody.  
And my first question is … well, very simple.  
I was playing with senocular’s example how to use MOUSE\_LEAVE.  
The custom cursor should disappear when the mouse leaves the stage.  
But it doesn’t. It seems that the function cursorHide is never called.

```
    public function cursorHide(evt:Event):void {
        cursor.visible = false;

        trace ("hide");

```

}  
gives no output.
