Adobe Flex 3 Help

Running your applications

Your applications are run (and debugged) based on a launch configuration. When you create new Flex and ActionScript applications, a launch configuration specifies the location of the built applications files and the main application file. You can modify the launch configuration or create custom launch configurations. For more information, see Managing launch configurations.

Running your projects opens the main application SWF file in your default web browser or directly in the stand-alone Flash Player. For information about changing the default web browser or running and debugging with the stand-alone Flash Player, see Changing the default web browser and Running the application SWF file in the stand-alone Flash Player.

You can run your projects in a number of ways in Flex Builder. For example, you can use the Run command, which is available from the workbench main menu and toolbar, from the Flex Navigator view, and code editor pop-up menus.

Note: The Run button has two elements: the main action button, and a pop-up menu that shows the application files in the project that can be run or debugged. When you click the main action button, the default application file is run. Alternatively you can click the pop-up menu and select any of the application files in the project and create or edit a launch configuration in the Create, Manage, and Run Configurations dialog box.

Run project with default Flex application launch configuration

  1. In the Flex Navigator view, select the project to run.
  2. On the main workbench toolbar, click the Run button.

    If your project is not built yet, Flex Builder builds and runs it.

    Your application appears in your default web browser or the stand-alone Flash Player.

You can run and debug any project files that have been set as application files. For more information see Managing project application files.

Create custom launch configuration

  1. In the Flex Navigator view, select the project you want to run and open the main application file in the editor.
  2. From the main menu, select Run > Run > Other.
  3. In the Create, Manage, and Run Configurations dialog box, select Flex Application.
  4. Click the New button on the dialog box toolbar.
  5. Enter the launch configuration name.
  6. (Optional) Modify the configuration properties as needed.
  7. (Optional) Click Run to run the application.

Run other application files in your project

  1. In the Flex Navigator view, select the project to run.
  2. From the main menu, select Run > Run > Other.
  3. Select the application you want to run.

Run a custom launch configuration

 From the main menu, select Run > Run > Other.

In the Create, Manage, and Run Configurations dialog box, select an existing custom launch configuration or create a new one. See Managing launch configurations.

The Run command works a bit differently in the plug-in configuration of Flex Builder. Instead of running the currently selected project, it runs the most recently launched configuration. You can also select from a list of recently launched configurations.

Run the last launched configuration

 Click the Run button on the main toolbar.