10 June 2010
The sample applications contained in the Quick Start topics demonstrate some of the most important or popular aspects of specific Adobe AIR features.
To get started working with the Quick Start sample applications, follow these steps:
- Set up your development environment so that you can work with the sample code and compile and test the applications. For more information, see Setting up the Flex SDK.
- Download the sample application source files from the online location linked in each of the Quick Start topics.
- Install the sample applications using either of the following techniques (depending on which development environment you're using).
Flash Builder users
- Start Flash Builder and create a new project (see Creating your first Flex AIR application in Flash Builder).
- Give the project the same name as the sample application's main application file (for example, for the sample that contains TextEditor.mxml, name the project TextEditor).
- Under Application type, choose Desktop application (runs in Adobe AIR).
- Advance to the last page of the New Flex Project wizard.
- Verify that the name of the main application file for the project matches the name of the main application file in the sample.
Important: The file extension defaults to .mxml. If the main application file of the sample is an ActionScript file, then you must change the extension to .as.
- Click Finish to create the project.
- Flex Builder will automatically open the newly created MXML or ActionScript file. Close this file because it will be overwritten in the next step.
- Copy the source files from the sample application ZIP file to the project source folder. (You can open the archive folder and drag the files directly into the project source directory in the Flex Builder Navigator panel.)
Note: To change the main application file of an existing project, open the project Properties dialog box, select the Flex Applications page, and add the new file as the default runnable application file. Then remove the old file from the list of runnable application files.
Flex SDK users
- Unzip the sample application files into a folder on your computer. Create a new folder for each, if you like.
- With the SDK properly installed and configured (the SDK added to your class path), you're ready to test the samples.
Follow the instructions in the Quick Start topics to edit, run, and debug the applications.
For more information, refer to the following resources:
Flash Builder users:
Flex SDK users: