O'Reilly logo

Adobe AIR 1.5 Cookbook by Koen De Weggheleire, Koen DeWeggheleire, Marco Casario, David Tucker, Rich Tretola

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Application Settings

Because AIR moves beyond the browser, your development environment is no longer fixed. Now you can control many different facets of the application including its appearance, positioning, size, and transparency. All these settings as well as information about the application’s identity are contained in a single XML file called the application descriptor file.

Each AIR application is required to have an application descriptor file. The way you work with this information is different depending on which platform you are using to develop your AIR applications. In most situations, developers building Flex- or JavaScript-based AIR applications edit the application descriptor file’s XML directly, while Flash developers use the GUI tool included with Flash CS3 and CS4. However, Flash developers who want to develop multilingual AIR applications or interact with the browser API need to forego the GUI and manually edit the application descriptor file.

Mastering the application descriptor file is essential to AIR development. These recipes will help you position and configure your application windows, set application identification information, and set the installation location.

Targeting a Specific Version of AIR

Problem

You need to ensure that your application is targeting version 1.5 of AIR.

Solution

Specify the version of the runtime in the XML namespace within the application descriptor file.

Discussion

The XML namespace that is referenced in the application node ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required