AIR mx:Window instead of NativeWindow
This is a huge topic. I’m not going to do it any justice at all.
I was using NativeWindows to build my custom system and found quite a few issues figuring out how to “draw” to them the same as the main application window.
Several issues I found which killed me were:
- Tooltips from items on the new NativeWindow were showing up on the original ApplicationWindow
- The popup manager showed things on the App window as well.
- Scroll bars were not draggable
So I decided it was me, and not just the “beta” of AIR that was at fault and it was time to investigate the real “mx:Window” class.
I am on Beta 3. But anyone reading this almost certainly is as well (or later). So who knows when all of this really started working.
I effectively replaced everything NativeWindow with Window in my application. I then went and set all the chrome and transparency settings on the window and it mostly worked. I had to rework my hand-managed drag-manager and oddly enough there was a funny “not system” chrome around the window I couldn’t get over.
In the end Bradacle on the post referenced below found the answer for me:
showFlexChrome=”false”
That takes off the extra chrome which can be found on the mx:Window object.
More info:
http://blog.everythingflex.com/2007/07/17/air-windows/#comment-4999
Leave a Reply