O'Reilly logo

Flex 4 Cookbook by Garth Braithwaite, Joshua Noble, Todd Anderson, Marco Casario, Rich Tretola

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. AIR Basics

The Adobe Integrated Runtime (AIR) allows you to create applications using HTML, JavaScript, and Flash that users can run on their desktops. The next three chapters of this book cover various aspects of creating AIR applications. In this chapter you’ll learn the basics of creating an AIR application in Flash Builder 4.

18.1. Create and Run an AIR Application with Flash Builder 4

Problem

You need to create an AIR application using Flash Builder 4.

Solution

Use the built-in support for AIR application development in Flash Builder 4.

Discussion

Flash Builder 4 has built-in support for creating AIR applications. In many ways, working with an AIR application is similar to working with a Flex application.

Creating a new AIR application

To create a new AIR application project within Flash Builder, you first must create a new project. From the File menu, choose NewFlex Project. If you don’t see this option, you may need to choose Other and then select Flex Project from the resulting list.

When the New Flex Project dialog box appears (Figure 18-1), you will notice an option to make this a Flex web application or a Flex-based AIR application. Be sure that the option for an AIR application is selected, and then click the Next button to proceed through the wizard-like interface.

New Flex Project dialog box
Figure 18-1. New Flex Project dialog box

As you proceed through the dialog box, you can set the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required