Adobe Flex 3 Help

Optimizing modules in Flex Builder

In Flex Builder, you typically select a single application to optimize the module against when you first create the module or add it to a project. If you later decide to change the application that you optimize the module against, or if do not want to optimize the module, you can edit the module's properties within the project. For more information, see Reducing module size in the Adobe Flex 3 Developer Guide.

Optimize modules with Flex Builder

  1. Right-click the application's project in the Navigator and select Properties. The project's Properties dialog box appears.
  2. In the left pane, select Flex Modules.
  3. From the list of modules, select the module and then click the Edit button. The Edit Module dialog box appears.

    Edit Module dialog box.

  4. To remove optimization, select the Do Not Optimize radio button under Module SWF Size.
  5. To optimize the module for a different application, select the new application from the Optimize for Application pop-up menu.
  6. Click OK.

To further optimize a module's file size, you can remove debugging information. If you build a module in Flex Builder, debugging information is included in the module by default. By removing debugging information, you can further reduce the size of the module. For instructions on how to remove debugging information from modules, see Debugging modules in Flex Builder.