NativeWindow – using AIR windows with Actionscript (part 3 of 3)
In the first part of this post I covered each public property exposed by an instance of NativeWindow, before continuing to look at each public method in part two. In this final part of the series I’ll go through each of the different events dispatched by a NativeWindow during its lifetime.
Event.ACTIVATE
This event is sent out when the window is activated. The event doesn’t go through a capture phase, and it won’t bubble up the Display List. Some examples of when your window may dispatch this event include:
- When the NativeWindow is first created and activated
- When your application contains multiple NativeWindows and the user clicks on a window which previously was not the active window, giving it focus and bringing it to the front, the window will dispatch Event.ACTIVATE
- When you switch to another running application elsewhere on the system (an AIR application, or otherwise) and then switch back to this window, the event will be dispatched
Continue reading NativeWindow – using AIR windows with Actionscript (part 3 of 3) »
Tags: AIR, AS 3.0, Tutorial