
101
8
CHAPTER 8
Create Your First Application
This lesson shows you how to compile and run a simple Flex application with Adobe Flex
Builder. This lesson also introduces you to the concept of Flex Builder projects and shows you
how to create projects. In Flex Builder, all Flex applications are contained within projects.
In this tutorial, you’ll complete the following tasks:
Create the Lessons project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Learn about compiling in Flex Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Create and run an application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Create the Lessons project
Before building a Flex application in Flex Builder, you must create a project. When you create
a project in Flex Builder, a main MXML application file is created for you. You can add
resources to a project, such as custom MXML component files, ActionScript files, and other
assets that make up your Flex application.
1. Start Flex Builder and select File > New > Flex Project from the main menu.
If you have the plug-in configuration of Flex Builder and you have a non-Flex-Builder
perspective open in Eclipse, select New > Other > Flex > Flex Project.
The New Flex Project wizard appears.
The wizard guides you through the steps of creating a project.
2. In the opening screen, accept the Basic data option (the first option) and click Next.
The next screen asks you to specify the name of the project and the location to store its
files.
3. In the Project Name text box, enter Lessons.
This is the name of your project. When you create a project, Flex Builder generates a main
MXML application file based on the project name. Because a main application file uses
the same name, you can’t use spaces or special characters for the project name.
Commenti su questo manuale