WHAT'S HOT
Prev | Current Page 156 | Next

LordAlex Leon, Greg Goralski

"Foundation Flex for Designers"


Figure 12-1. Completed AIR project
Creating a new AIR application
AIR comes as a part of Flex Builder 3. This includes the Software Developer Kit (SDK) and the actual
AIR runtime. The runtime is the framework that allows you to run AIR applications. This needs to be
installed only once onto any computer that will be running AIR applications. Therefore, the footprint
for the applications themselves is kept small. If you need the AIR SDK or the AIR runtime, you can find
them on the main AIR page at http://www.adobe.com/go/air.
1. Create a new Flex project (Figure 12-2) and set the application type to Desktop Application (runs
in Adobe AIR). Name the project Media-Center and click Finish.
238
CHAPTER 12
Figure 12-2. Creating a new AIR project
Notice that an extra file is automatically created. We have the MXML file named main.mxml, but we
also have main-app.xml. This is the application descriptor file, and it controls how the project is presented.
The application descriptor file deals with the default parameters for the AIR application, such
as its name, initial color, and shortcut icon. We will be looking closely at this file in the second part of
this chapter. For now, it is important to notice this file and not to change its name.
The MXML file is called main.mxml because there is a hyphen in our project name. If there are no
hyphens or spaces in a project name, the MXML and the application??™s descriptor file are assigned the
same name as the application.


Pages:
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła