5.3. Testing Your Applications with the SDK

To run this application in the Terminal window with the AIR SDK, you will first need to create the HelloWorld-app.xml file in the same folder as the HelloWorld.html file. Listing 5-5 is a sample -app.xml file. For more information on the properties of this XML file, please refer to Chapter 6.

Example 5-5. The -app.xml file for the HelloWorld.html file
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
    <id>com.everythingflex.beginningAIR.helloWorldHTML</id>
    <filename>HelloWorld</filename>
    <version>v1</version>
    <initialWindow>
        <content>HelloWorld.html</content>
    </initialWindow>
    <name>HelloWorld</name>
</application>

Assuming that you have your Mac or Windows environment set up correctly as described in Chapter 1, open up your Terminal window, navigate to the folder containing the HelloWorld.html file and Mac, and run the following code:

adl HelloWorld-app.xml

This will generate a test version of the HelloWorld application, and you should see something similar to Figure 5-9.

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.