Datasheet

Luchner c01.tex V3 - 03/20/2008 2:29pm Page 15
Chapter 1: The Development Environment
accessed using the
File
class from the AIR API, as you will see in the examples throughout this
book. For the example in this chapter, you will find the application installation at
C:
\
Program
Files
\
AIRCMR
\
HelloWorld
\
Hello World
on Windows and
HD/Applications/AIRCMR
/HelloWorld
on Mac OS X.
Creates a directory for application storage titled after the value for the
id
element in the applica-
tion descriptor file. Created within this directory is a folder titled
Local Store
. This is known
as the application storage directory and is accessed using the
File
class from the AIR API. For
the example in this chapter, you will find the storage directory at
C:
\
Documents and Settings
\
<user>
\
Application Data
\
com.aircmr. HelloWorld
on Windows and
Users/<user>/Library
/Preferences/com.aircmr. HelloWorld
on Mac OS.
Adds a shortcut on your Desktop named after the
filename
element in the descriptor file if you
opted to create one from the installation window.
Figure 1-3
On Windows only:
Adds the application to the Start menu under
AIRCMR/HelloWorld
— the values supplied for the
programMenuFolder
and
filename
, respectively.
Adds the application titled Hello World — the value supplied as the
name
in the descriptor
file — in the Add or Remove Programs list available in the Control Panel.
Navigate to the installation folder. On a Mac, Ctrl+click on the Hello World application and select Show
Package Contents from the menu. In the root of this directory are the files specified in the parameters for
the ADT when you packaged the AIR file. Also within this directory is the application’s executable file
and the application descriptor file, which has been renamed to
application.xml
and placed within the
META_INF/AIR
subdirectory.
The application directory and application storage directory can be referenced using the
File
class of the
AIR API. These directories each serve their own purpose in creating and accessing resources for your
applications at runtime, a topic discussed later in this book.
Uninstalling the Hello World Application
Why uninstall the Hello World application? Because you live on the edge, and you want to save that disk
space for something grander. Fortunately enough, if you want to reinstall it, the AIR file is still available
in the project’s development directory.
15