6.1. The AIR Configuration File

The AIR configuration file is an XML file that contains all the settings that determine the way an AIR application is packaged for distribution. There are many required and optional properties available in this file, and the first part of this Chapter will focus on each setting and how it affects the package that is generated.

6.1.1. <application/>

The <application> tag is the root tag of the AIR configuration file. Its only property is the xmlns that defines the version of the AIR runtime needed to install and run the application.

<application xmlns="http://ns.adobe.com/air/application/1.0">

6.1.2. <id/>

The <id> tag is a child of the <application> tag. The id is a unique identifier to your application and should be specific to the application. It is recommended that an id consist of a domain namespace to ensure uniqueness. For example, the following example is an application named ConfigureIt, thus the id I chose to use was com.everythingflex.beginningAIR.configureIt.


6.1.3. <version/>

The <version> tag is a child of the <application> tag. The version property alerts the AIR installer to prompt the user when the new version is different from the currently installed version. It does not know if the installed version is newer or older than the one being installed; it simply notices the difference and alerts the user. See Figures 6-1 and 6-2, which demonstrate version 1.as the installed version ...

Get Beginning Adobe® AIR™: Building Applications for the Adobe Integrated Runtime now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.