Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1
Testing the Application | 35

While we could package up the entire application and then
install it, this would be tedious, and make it difficult to
quickly iterate on and test new versions. Luckily, the Adobe
AIR SDK provides a command-line tool called ADL, which
allows you to launch an AIR application without having to
first install it.


In order to test our application:


1.Open a Terminal window (on Mac) or a Console win-
dow (on Windows).
2.Change to the directory that contains the
AIRHelloWorld.html andAIRHelloWorld.xml files.
3.Run ADL with the following command, passing in the
name of the application descriptor file:
adl AIRHelloWorld.xml

This should launch your application within the standard sys-
tem chrome of your operating system.


If the application does not launch correctly, or if you get an
error, check the following:


Figure 2-2. AIRHelloWorld application running from ADL on Mac
OS X

Free download pdf