Notes on creating your first Adobe Air application
Posted March 5, 2008on:
The base documentation from Adobe is pretty good, but there are a couple of gotcha’s which aren’t immediately clear.
- You need to copy AIRAliases.js from
<air install dir>/frameworks
into your application directory (the same place you’ve placed you xml config file and sample html file.)
If you try to test the sample application without doing this, you’ll get an error.
- My Windows setup is weird about PATH variables for some reason. If you get the standard ‘adl is not recognized as an internal command’ error, you can simply add the path to the adl executable into your command line query like so:
<air install dir>/bin/adl.exe HelloWorld-app.xml
- By default, when an application is packaged, the ADT process attempts to contact a time server to generate a timestamp. If you use a proxy server to connect to the internet, you’ll get a ‘connection refused’ error.
You can get around this by adding ‘
-tsa none‘ before the file component of the command like so:
adt -package -storetype pkcs12 -keystore sampleCert.pfx -tsa none HelloWorld.air
HelloWorld-app.xml HelloWorld.html AIRAliases.js