Code On Fire Passionate About Cool Code

12Nov/090

Adobe Air MouseLeave Window

It took me a while to figure out how to get an Air application to let me know when the mouse leaves the window. Once I got it.. easy as pie:


window.nativeWindow.stage.addEventListener('mouseLeave',function(e){
    alert('The mouse just left the Window');
});

 

Tada!