| Using Flex Builder 2 > Programming Flex Applications > Running and Debugging Applications > Running your applications | |||
Your applications are run (and debugged) based on a launch configuration. When you create new Flex and ActionScript 3.0 applications, a launch configuration specifies the location of the built applications files, the main application file, and so on. 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 Flash desktop player. For information about changing the default web browser or running and debugging with the Flash desktop 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 from the workbench main menu and toolbar, and from the Navigator view and code editor pop-up menus.
If your project is not built yet, Flex Builder builds and then runs it.
You can run and debug any project files that have been set as application files. (See Managing project application files.)
The Create, Manage, and Run Configurations dialog box appears.
|
NOTE |
|
The Run button has two elements: the main action button, and the drop-down list that shows all of the application files in the project that can be run or debugged. When you click the main action button, the project's default application file is run. You can alternatively click the drop-down list and select any of the application files in the project. You can also access the launch configuration dialog box and create or edit a launch configuration by selecting the Run command. |
The launch configuration dialog box appears. You can select an existing custom launch configuration or create a new one. See Managing launch configurations.
If you're using the plug-in configuration of Flex Builder, the run command works a bit differently. 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.
Flex 2.01