Detecting when the mouse leaves your movie

I have tried tons of “mouseOut” and lose-focus types of solutions to deal with my AIR applications losing focus. Well, as of ActionScript 3 I find there is a new event (on the stage itself) which is published when the mouse leaves the movie.

 

stage.addEventListener(Event.MOUSE_LEAVE, myMouseOutFunction);

Finally!

Leave a Reply