Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flex Developer Center /

Exercise 5.10: Creating a production build

by Trilemetry

Trilemetry
  • Trilemetry, Inc.

Content

  • Explore the bin-debug directory
  • Create a production build
  • View the production build

Created

2 May 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flash Builder Flex RIA

Requirements

Prerequisite knowledge

  • Exercise 1.1: Setting up Flash Builder and your project files

User level

Beginning

Required products

  • Flash Builder 4.5 Premium (Download trial)

Exercise files

  • ex5_10_starter.zip
  • ex5_10_solution.zip

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

You create a production build of this application.
Figure 1. You create a production build of this application.

In this exercise, you will learn how to:

  • Explore the bin-debug directory
  • Create a production build
  • View a production build

Explore the bin-debug directory

In this section, you will explore the contents of the bin-debug directory.

  1. Download the ex5_10_starter.zip file if you haven’t already and extract the file ex5_10_starter.fxp to your computer.
  2. Open Flash Builder.
  3. Import the ex5_10_starter.fxp file.
  4. Open the ex5_10_starter.mxml file.
  5. Run the application.

    You should see the Employee Portal page (see Figure 2).

 Run the application to see its preview in a browser.
Figure 2. Run the application to see its preview in a browser.
  1. Return to Flash Builder.
  2. 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.

  3. Within the bin-debug folder, right-click the ex5_10_starter.swf file and select Properties (see Figure 3).
Right-click the ex5_10_starter.swf file and select Properties.
Figure 3. Right-click the ex5_10_starter.swf file and select Properties.
  1. Note the file size (see Figure 4).
Note the file size for the bin-debug version of the ex5_10_starter.swf file.
Figure 4. Note the file size for the bin-debug version of the ex5_10_starter.swf file.

Create a production build

In this section, you will create a release build version of the Employee Portal application.

  1. Select Project > Export Release Build (see Figure 5).
Select Project > Export Release Build.
Figure 5. Select Project > Export Release Build.
  1. In the Export Release Build dialog box, select the check box next to Enable view source (see Figure 6).

    Note that the export folder is named bin-release.

Click the check box next to Enable view source.
Figure 6. Click the check box next to Enable view source.
  1. Click Finish.

View the production build

In this section, you will view the release build in a browser and use the source view option to view the code source.

  1. Within the Package Explorer view, expand the bin-release folder.
  2. Right-click the ex5_10_starter.swf file and select Properties.
  1. Note the file size.

    You should see the file size is considerably smaller (see Figure 7).

 Note that the file size of the production build SWF file is much smaller.
Figure 7. Note that the file size of the production build SWF file is much smaller.
  1. Click OK.
  2. Run the application.
  3. Right-click somewhere in the browser window and select View Source (see Figure 8).
Fig Right-click somewhere in the browser window and select View Source.
Figure 8. Right-click somewhere in the browser window and select View Source.

You should see the source view open (see Figure 9). Note the Download source link in the bottom left corner.

 Note the Download source link in the bottom left of the source window.
Figure 9. Note the Download source link in the bottom left of the source window.

In this exercise you used Flash Builder to create a production build of the Flash application.

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License+Adobe Commercial Rights

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

More Like This

  • Exercise 2.5: Retrieving and handling data with the RemoteObject object
  • Exercise 2.6: Separating the model, view, and controller
  • Exercise 2.7: Creating an ActionScript class and instances
  • Exercise 2.8: Creating an ArrayCollection of value objects
  • Exercise 2.9: Use the Data Services wizard to connect to a service
  • Exercise 4.3: Creating item renderers for Spark List components
  • Exercise 4.4: Using the Spark DataGrid control
  • Exercise 5.3: Using advanced CSS selectors
  • Exercise 5.6: Creating custom skin properties
  • Exercise 5.5: Creating and applying skins

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement