Using Flash Builder with Flash Professional

Use Flash Professional projects to access code in FLA or XFL files created with Flash Professional CS5.5 or a higher version. Typically, you create a project and files in Flash Professional, then you create a corresponding project in Flash Builder to edit and debug the files. This feature allows Flash Professional developers to use the editing and debugging environment available with Flash Builder.
Note: The features of Flash Professional projects are available in Flash Builder only if you have installed Flash Professional CS5.5 or a higher version.

Create a Flash Professional project

To create a Flash Professional project in Flash Builder, you must already have started the project in Flash Professional. That is, the FLA or XFL file must exist.

  1. Select File > New Flash Professional Project.

  2. Navigate to the target FLA or XFL file for the project.

    The name of the file becomes the name of the project.

  3. Specify a project location:

    You can use either the default project location in the workspace or navigate to a new project location.

  4. Click Finish.

    Flash Builder opens the new project in the Package Explorer. The folder containing the target FLA file is accessible. The selected FLA file becomes the target file in the project. ActionScript files that are dependent to the target files are available for editing.

    If Flash Professional is not running, Flash Professional starts.

Set project properties for Flash Professional projects

  1. Select Project > Properties > Flash Professional.

  2. Select Add to add additional files to the project.

    A project can have only one target FLA or XFL file as the default target file. Use the Set as Default button to specify the default target file for the project.

  3. Click OK.

What you can do in a Flash Professional project

You can do the following with source files in a Flash Professional project:

  • Edit the ActionScript files that are dependent to the target FLA file.

  • Debug the file in the Flash Builder debugger or Flash Professional Debugger.

    When editing the files in Flash Builder, you can set breakpoints in the project’s ActionScript files.

    To debug in Flash Builder, select Run > Debug file or click the Debug button from the toolbar.

    To debug the file in Flash Professional, select Run > Debug Movie or click the Debug Movie button in Flash Builder. The Flash Professional debugger recognizes breakpoints set in Flash Builder.

  • Publish the file in Flash Professional CS5.5 or a higher version:

    Select Project > Publish Movie or click the Publish in Flash Professional button from the toolbar.

  • Run the file in either Flash Builder or Flash Professional:

    To run the file in Flash Builder, select Run > Run file or click the Run button from the toolbar.

    To run the file in Flash Professional, select Run > Test Movie or click the Test Movie button from the toolbar.