I’ve been to a great afterhours session about AIR with Peter Elst. He’s writing a book on the subject so obviously there was lots he had to teach. He covered the windowing, file, dragdrop, sqlite and upgrade apis. This was a bring-your-own-laptop session so all the people present were experimenting with the code. We found a few oddities that you usually learn the hard way.
FileFilter behaves differently on mac and windows. On windows the extension parameter must start with an asterisk "*.html", on mac both "*.html" and ".html" seem to work.
Creating and manipulating NativeWindows works great, but adding flex components to the stage of a new NativeWindow doesn’t seem to work. Daniel Dura had a workaround for this, but that doesn’t seem to work anymore.
He gifted a few books at the end. ActionScript 3.0 Design Patterns is now mine. Thanks Peter!
Update: Peter has remembered how to use mx.core.Window as a a native window.
[…] Neirynck has a a little review of the event on his blog that prompted me to write this entry. I’ve been having a lot of fun […]
Thanks for the feedback Kristof, was great seeing you there! ;) I looked into the NativeWindow thing today and you can use mx.core.Window to be able to add Flex components rather than NativeWindow (which you can still use if you want to add pure ActionScript 3.0 things like new TextField() etc.)
I’ll work on a blog post covering some of the oddities we ran across in the session ;)
Hey Kristof,
<mx:Window> is your new friend for native windows. A whole lot easier than doing it with ActionScript…
Serge