In Flash Builder 4, I used to follow these steps to create an ActionScript AIR project:
- Go to File > New > Flex Project.
- Create a project as usual, making sure “Desktop” is chosen as the Application Type.
- Rename the default application MXML file to something temporary.
- Create a new ActionScript file with the name of the application (and make sure it extends Sprite).
- Right click on the new ActionScript file, and choose “Set as Default Application.” This renames the application descriptor file accordingly.
- Delete the old temporary MXML file.
Not very smooth. Fortunately, in Flash Builder “Burrito” (still a preview release), there’s an ActionScript Desktop (AIR) project. To create an ActionScript AIR project in “Burrito,” all you have to do is:
- Select File > New > ActionScript Project.
- Set up your project as usual and make sure the “Application Type” is set to “Desktop.”