One thing about previous versions of ActionScript was that you could never tell when the user no longer had his or her mouse over the Flash movie. This made it hard for people to know whether or not the user is still interacting with their movie or if they’ve given up and moved on to something more interesting. This was especially a problem for custom cursors where, if the user moved the cursor off the Flash movie, the custom cursor would still remain in the Flash movie not moving while the real cursor could be seen moving around everywhere else.
ActionScript 3 now allows you to detect when the mouse has left the flash movie using the stage’s MOUSE_LEAVE event.
stage.addEventListener(Event.MOUSE_LEAVE, cursorHide);
kirupa.com – Flash Tutorial: Detecting When Mouse Leaves Movie.
Share this on google buzz!