To get up and running with AIR (Adobe Integrated Runtime) you don’t really have to do very much. Adobe has provided an installer to update Flash CS3 to be able to make AIR applications directly in the Flash IDE. All you’ve got to do is go download it here. Make sure that before you install this update, you have the Adobe AIR runtime installed which allows you to run AIR applications on your computer (kind of like the Flash Player). Grab that first here.
So what does this update do? Basically, as stated before, it allows you to create/publish AIR applications in the Flash IDE. You will notice on your start page for Flash CS3 that you now have an option, under the Create New column, to select Flash File (Adobe AIR). This automatically sets the publish settings to publish to AIR. Once you do this, a little popup box will show that you are Authoring for AIR with Flash CS3 in which you can just click OK. If you now look in your Commands dropdown you will see two new options: AIR - Application and Installer Settings and AIR - Create AIR File. The first option allows you to set the properties of your AIR movie anywhere from naming it to the window style you want to use to which files to include in the package. You will also have to create a Digital signature file for your project or you will get an ugly AIRI file when you publish which is pretty much useless.
To create the signature, just click Set, then click Create and put in your information for the fields. This information, as far as I know, is pretty meaningless but fill it out however you’d like. Make sure to set a password and save the file. When you click OK, you will be taken back to the previous prompt and you’ll have to put in the password you set when you created the certificate. Then click OK and you’re all done.
The second command brings up a certificate creation prompt in which you should just have to enter your password and be all set. Keep in mind that you can actually package the AIR file in the first command we discussed so you may never actually have to use the second one.
Lastly, if you want to see your output traces, make sure you are using Debug > Debug Movie. If you don’t, your traces will never get called and you won’t see what is going on with your application.
That is all you should need to get up and running with AIR in Flash CS3. There is more and more AIR resources becoming available on the net and a bunch of books coming out in 2008 on the topic to help us all out.
Tags: AIR, AS3, Flash CS3