In this exercise you use Flash Builder to create a production build of the Flash application shown in Figure 1.

Figure 1. You create a production build of this application.
In this exercise, you will learn how to:
In order to complete this tutorial, you need the following software and files:
In this section, you will explore the contents of the bin-debug directory.
Run the application.
You should see the Employee Portal page (see Figure 2).

Figure 2. Run the application to see its preview in a browser.
Within the Package Explorer view, expand the bin-debug folder.
The bin-debug output files contain additional debug code and metadata that the debugger uses for tasks such as setting breakpoints or viewing variables.
Within the bin-debug folder, right-click the EmployeePortal.swf file and select Properties (see Figure 3).

Figure 3. Right-click the EmployeePortal.swf file and select Properties.
Note the file size (see Figure 4).

Figure 4. Note the file size for the bin-debug version of the EmployeePortal.swf file.
In this section, you will create a release build version of the Employee Portal application.
Select Project > Export Release Build (see Figure 5).

Figure 5. Select Project > Export Release Build.
Within the Export Release Build dialog, select the check box next to Enable view source (see Figure 6).
Note that the export folder is named bin-release.

Figure 6. Click the check box next to Enable view source.
In this section, you will view the release build in a browser and use the source view option to view the code source.
Right-click the EmployeePortal.swf file and select Properties (see Figure 7).

Figure 7. Right-click on the bin-release EmployeePortal.swf file and select Properties.
Note the file size.
You should see the file size is considerably smaller (see Figure 8).

Figure 8. Note that the file size of the production build SWF file is much smaller.
Right-click somewhere in the browser window and select View Source (see Figure 9).

Figure 9. Right-click somewhere in the browswer window and select View Source.
You should see the source view open (see Figure 10). Note the Download source link in the bottom left corner.

Figure 10. Note the Download source link in the bottom left of the source window.
In this exercise, you learned about the bin-debug folder and its contents and how to create a production build of a Flex application as well as enable view source for the application.
Trilemetry, Inc is a development and education organization that implements a human-centered design approach to the creation of software and content. Their Adobe portfolio includes the Adobe ColdFusion Getting Started Experience, the Adobe Flex Getting Started Experience, the Flex in a Week video series, the official Adobe instructor-led training course Flex 3: Extending and Styling Components and more. They also create and support many Web applications from interactive Flash sites and corporate web sites to mission-critical business applications.