About Flash Builder projectsFlash Builder uses a traditional approach to software development: grouping the resources (folders and files) that constitute an application into a container called a project. A project contains a set of properties that control how the application is built, where the built application resides, how debugging is handled, and the relationships to other projects in the workspace. To manage projects, you use the Package Explorer view, which lets you add, edit, and delete resources. You can also close projects within a workspace, import resources, and link to external resources. In addition to Flex projects, Flash Builder provides a basic project type called an ActionScript project. Using an ActionScript project, you can code and debug ActionScript applications that directly access the Adobe Flash Player APIs and are compiled into SWF files. ActionScript projects do not use the Flex framework or MXML language. Applications deployed to Flash PlayerUse the New Flex Project wizard to create applications that can be deployed to the Flash Player. When creating the project, specify the application type as Web (runs in Adobe Flash Player). These applications are compiled into stand-alone SWF files. For more information, see Working with projects and ActionScript projects. Applications deployed to Adobe AIRUse the New Flex Project wizard to create applications that can be deployed to Adobe® AIR®. Specify the application type as Desktop (runs in Adobe AIR). Use the Export Release Build feature to generate a release-quality, installable AIR package. For more information, see Developing AIR applications with Flash Builder. With Flash Builder you can debug, package, and manage AIR projects. Flash Builder enables you to run applications in AIR. The Adobe AIR Marketplace is a place where AIR developers can publish AIR applications for users to download. To find the Marketplace, go to www.adobe.com/go/marketplace. If you have questions on the Adobe AIR Marketplace, go to www.adobe.com/go/marketplace_faq. Flex Library ProjectsYou also use Flash Builder to build custom code libraries that you share between your applications or distribute to other developers. A library project generates a SWC file, which is an archive file for Flex components and other resources. For more information, see Library projects. Applications contained in projectsTo begin building an application in Flash Builder, you must first create a project. Specify whether the application is a Web application (runs in Flash Player) or Desktop application (runs in AIR). When you create a Flex project, a main application file is created for you. Then you add other resources such as MXML application files, custom MXML component files, ActionScript files, and other assets that make up your application. When you create an ActionScript project, a main ActionScript file is created; then you can build an application by using ActionScript and the Flash Player API. For more information, see Creating Flex projects and Managing projects. Projects managed in workspacesProjects are managed from within a workspace, which is a defined area of the file system that contains the resources (files and folders) that make up your applications. By default, your projects reside within the workspace. You can, however, create projects that are located outside the workspace; Flash Builder automatically links them to the workspace. When you switch workspaces, Flash Builder restarts. More than one project in each workspaceYou can add as many projects to a workspace as needed. All of your projects are displayed in the Package Explorer, and you can manage them as needed. You can add resources, organize your projects into folders, and build projects in the workspace. For more information, see Managing projects and Creating folders and files in a project. External linked resourcesIn addition to the resources in your projects, you can link to resources outside a project and workspace. Linked external resources appear as part of the project but reside outside the project’s location. For more information, see Linking to resources outside the project workspace. More than one application in a projectFlash Builder lets you define more than one file in your project as an application. When you create a project, Flash Builder generates a main application file that serves as the entry point into your application, and the compiler uses this file to generate the application SWF file. However, if your project is complex, you can create additional application files. All application files must reside in the src folder under the root folder of your project. For more information, see Managing project application files. Support for Multiple Flex SDKsYou could have projects that are in progress or an older project code base that must be maintained. With Flash Builder, you can work with different versions of the Flex SDK. To specify the installed SDKs, you configure the Flash Builder workspace, which provides a default SDK for any project. After you set up a project, you can add, remove, or edit SDK configurations in the Preferences dialog by selecting Flex > Installed SDKs. You can also modify the SDK configurations by selecting Project > Properties > Flex Compiler. For more information, see Using multiple SDKs in Flash Builder. Automatic project buildsBy default, your project is automatically built any time you save changes to a file. You have complete control over how and how often your applications are built. If you have no special requirements for customizing the build, it works transparently and automatically generates the application SWF files. For more information, see Building projects. Export Release BuildWhen your application is ready to deploy, you use the Export Release Build wizard to create a release-quality non-debug version of your application. The wizard copies required assets to a bin-release folder separate from the debug version. You can specify whether or not to include the application’s source code. The exported application is an optimized production build that can be viewed by end users. For Adobe AIR projects, AIR applications are exported to an AIR file. You use Export Release Build to create a digitally signed AIR file, which users install before running an application. Custom Ant scriptsApache Ant is a Java-based build tool that you use to create custom scripts for building applications in Flash Builder. You use Ant to modify and extend the standard build process. For more information, see Customizing builds with Apache Ant. Command line buildWith Flash Builder Premium, you can implement command line builds. Use command line builds to synchronize a developer’s individual build settings with a nightly build. For more information, see Flash Builder command line build. Project typesYou use Flash Builder to create project types in the following configurations: Flex projectsProject configuration options are based on how your application accesses data and if you have Adobe® LiveCycle® Data Services ES or Adobe BlazeDS installed. You can create projects for web (runs in Flash Player) or desktop (runs in Adobe AIR) applications. Here are the options:
ActionScript projectsBased on the Flash API, not the Flex framework, ActionScript projects let ActionScript developers use Flash Builder to code, build, and debug ActionScript-only applications. Because these projects do not use MXML to define a user interface, you cannot view the application layout and design in Design mode. You work exclusively in the source editor, the debugging tools as necessary, and then build the project into SWF application files to preview and test your application in a web browser or stand-alone Flash Player. For more information about ActionScript projects, see ActionScript projects. Library projectsLibrary projects are used to package and distribute components and other resources. They generate SWC files that you add to other projects or distribute to other developers. For more information, see Library projects. Flash Professional projectsUse Flash Professional projects to edit, build, or debug FLA or XFL files created in Adobe Flash Professional CS5. Flash Professional projects are only available if you have Flash Professional CS5 installed. For more information, see Creating Flash Professional projects. Projects in the Package ExplorerAll projects in a workspace are displayed in the Package Explorer, as the following example shows. The Package Explorer provides a tree view of projects from both a physical view and logical (flat) view. Using this view, you manage your projects by adding and deleting resources (folders and files), importing and linking to external resources, and moving resources to other projects in the workspace. ![]() Highlights of the Package Explorer include:
From the Package Explorer, you can open the project resources for editing. For example, you can edit MXML and ActionScript in <fx:Script> blocks and CSS in <fx:Style> blocks, or you can switch to Design mode and visually manipulate components and controls to create the application’s layout and behavior. For more information about working with the Flash Builder editors, see About code editing in Flash Builder and Building a user interface with Flash Builder. Then you add projects, files, and folders, and organize and manage them as needed (see Creating folders and files in a project). Most menu commands that you use in the Package Explorer view are also available from the view’s context menu. For more information about working with projects in the Package Explorer, see Managing projects and Creating folders and files in a project. Creating projects and opening resourcesFlash Builder provides the wizards to help you create Flex projects, ActionScript projects, and Flex Library projects. The following table describes the projects. To create a project, select File > New.
Project resourcesFlex and ActionScript applications support several standard resource types (MXML, ActionScript, and CSS). The following table lists the resource types that you can add to your projects. To add these resources, select File > New
For more information about adding resources to your projects, see Creating folders and files in a project. |
|