Open Review : Getting Started with AIR Chapter
I have posted chapter 2 of the Adobe AIR for Flex Developers Pocketguide on tostring.org. The chapter is titled Getting Started with Adobe AIR Development and covers (from the chapter):
- Installing Adobe AIR
- Configuring the Flex SDK and command-line tools
- Creating your first AIR application with the Flex SDK and Flex Builder 3
- Testing AIR applications
- Signing, packaging, and deploying AIR applications
This is just a draft chapter (.85) and I am looking for any comments, input, questions or suggestions on the chapter. If you have any input, just leave a comment on the chapter page.






Thanks for the post, found this really helpful when getting started with AIR. Got a question which I’ve google’d time and time again and none of the solutions work so I’ve came to the source… how do I use JavaScript to call an AS3 function defined in my AIR app??? This seems an obvious question I know but I just can’t get it to work!!! Any help would be much appreciated…
Pete
18 Jul 08 at 9:34 am
Check out:
http://www.tostring.org/books/adobe-air-for-javascript-developers-pocketguide/1.0/en/working-with-javascript-and-html-within-adobe-air/
You can get a reference to your application via:
window.runtime.flash.desktop.NativeApplication.nativeApplication
from both ActionScript and JavaScript.
You can use this to call into ActionScript functions from JavaScript.
Hope that helps…
mike chambers
mesh@adobe.com
mikechambers
18 Jul 08 at 9:54 am
Thanks for the quick response Mike… I’m still not getting anywhere unfortunately :(
I’m running some PHP on a localhost, eventually to be hosted online, and accessing it via Air’s HTML class within a desktop air app. I have a function, myASFunction(), within my MXML that I want to call from the JS within the PHP pages at runtime. I’ve tried many ways of doing this including window.runtime.flash.desktop.NativeApplication.nativeApplication.myASFunction(); but these don’t seem to work :(
I’ve read blogs that suggesting what you did above but I’ve also read blogs suggesting…
(inside MXML) html.useApplicationDomain = ApplicationDomain.currentDomain;
(inside JS) runtime.mx.core.Application.application.myASFunction();
Can you provide any insight into this?
Pete
19 Jul 08 at 4:56 am
What do I do if my AIR application runs fine when I run / debug it in Flex, but has problems when exported as release build and installed as AIR app?
Marion
20 Aug 08 at 2:21 am