Switching the main application file

When you create a project, the main application file is generated for you. By default, it is named after the project. The main application file is the entry point into your applications and becomes the basis of the application SWF file. However, as you add files to your application, you might want to designate a different file as the main application file.

If you prefer to set multiple files as application files so that each application file is built into a separate SWF file, see Managing project application files.

To switch the main application file:

  1. In the Navigator view, select the MXML application file that you want to make the main application file.
  2. Right-click (Control-click on Macintosh) to display the context menu and select Set as Default Application.

You can manage the application files in your project by selecting Project > Properties > Flex Applications (or ActionScript Applications if you're working with an ActionScript project).

Related topics


Flex 2.01

Take a survey