Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1

28 | Chapter 2: Getting Started with AIR Development


9.If the file is empty, add the following line:
export PATH=$PATH:/airsdk/bin
10.Save and close the file.
11.Run the following command to load the new settings
source,.profile (or.bashrc, if that is the file you edited).
12.You can confirm that the new settings have taken effect
by typingecho $PATHand pressing Enter. Make sure that
the<SDK_Path>/bin path is included in the output.
13.In order to test the installation, open a Terminal window
and typeadt.
You should see output similar this:
Too few arguments.
Usage: adt -package air_file app_xml [ file_or_dir |
-C dir file_or_dir ... ] ...
meaning that the tools are configured correctly.

If you get an error that the file cannot be found, then check
the following things:



  • Make sure thebinandruntimedirectories are included in
    the directory.

  • Make sure you included the path to/bin
    correctly in the PATH environment variable.

  • Make sure you either opened a new Terminal window, or
    ransource on your configuration file.


Creating a Simple AIR Application with


HTML and JavaScript


Now that you have installed and configured Adobe AIR and
the Adobe AIR SDK Betas, we are ready to build our first AIR
application.


We will build a very simple “hello world” example. Once
you have built and tested the application, your development
environment will be set up and ready to build more complex
and functional AIR applications.

Free download pdf