I red about native extensions in the recent version of Adobe AIR 3.0, and decided to play with it. There aren’t that many examples online yet, the only resources I found were the devnet article from Oliver Goldman and a blog post about invoking ICU from Adobe AIR.
I don’t know any C++ at all, so it was quite a challenge to build a working dll and getting Adobe AIR to talk to it. Right now, all my example does is simple return the message it gets from Adobe AIR back. But it might form a starting point to build more exciting stuff on top of it.
Building and testing the native extensions is quite some command-line work, so I decided to put it in an ant script, which builds the .ANE file, extracts it and starts a AIR debug session with the extension.
You can download the visual studio project and the flash builder project. The flash builder project comes with an ant script (ant-debug.xml), which does the native extension packaging & debug launch. You may need to change the path to your Adobe AIR sdk in the ant-debug.xml file.