August 14th 2007 Posted to
AIR
I’ve been doing quite a bit of work with AIR lately and I have learned a ton of things about how to get the most out of the technology. One such area is dealing with native windows. Native windows are just another name for the standard application windows that most applications on your OS use. You can launch native windows in AIR from Javascript, Flash, or Flash and you can set a whole slew of options on them. I have had a lot fun with these windows in some of my earlier experiments which you can check out here and here.
Well one of the things that I wanted to be able to do with native windows is to be able to set the z order of any windows that I spawned. The guys on the bus tour mentioned in their presentations that there was going to be support added for this but that it was not in the current beta. Well it turns out that it IS in the beta if you use the Flex Window control rather than using NativeWindow.The Window component essentially just wraps the NativeWindow and adds some helpful features to it. The z indexing support is not as powerful as the display list inside of Flash but it has some useful methods for playing with spawned windows. Below is a rundown of the available methods as well as how to instantiate the Window component.

Anyway, play around with this and let me know how it works as I haven’t actually tried calling these methods yet. I have an experiment in the works which will test these out though.
Lee