Check out "Do you speak JavaScript?" - my latest video course on advanced JavaScript.
Language APIs, Popular Concepts, Design Patterns, Advanced Techniques In the Browser
Sometimes we need to catch the closing of our AIR application to make some things like storing the window's position and size. We can do that in our code.