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 / Samples /

Flex 3 product configurator

by Adobe

Adobe logo

Created

25 February 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flex

Requirements

User level

All

This application, built by Teknision, allows you customize a bowling shirt, demonstrating how to use Flex to build a product configurator. The user starts by choosing a shirt type, then chooses base and trim colors. They can then put a logo on the shirt along with a player name. As the user selects features, the shirt is updated in realtime to show how it will appear in its final version. When the user's selections are complete they can see a consolidated list of all their selections.

interface for creating a customized bowling shirt
  • Experience the application

To download and view the full source, right-click the Flex application and select View Source from the context menu.

File and folder descriptions

The application has two main pieces: Flash/ShirtConfigurator.swc and Flex/Configurator.zip/src/Configurator.mxml.

ShirtConfigurator.swc

ShirtConfigurator.fla uses the Flex Component Kit for Flash CS3. This is a simple Flash file, which holds movie clips of different shirt types. Each of these movie clips are linked to a class located in com/adobesamples/controls/. They all extend UIMovieClip which is a compiled clip located in the library. This allows these movie clips to be pulled into and used in Flex. Once the ShirtConfigurator.swc is exported it should then be copied over to the Flex project's /libs/ folder.

Configurator.mxml

The Object that populates the Configurator is located in the com/adobesamples/vo/ConfigurationItem.as file. Each of the variables within this object are populated with default values. The com/adobesamples/vo/ConfigurationData.as file includes arrays which hold information on the shirt designs and logos. The com/adobesamples/controls/DesignItemFactory.as file takes in the shirtFront name and returns a DesignItem. This DesignItem includes the front of the shirt (from the Flash file), and the back (if indicated to do so).

Setting up the project in Flex Builder 3

  1. Import the Configurator project into your Flex Builder workspace by selecting File > Import > Flex Project from the main menu.
  2. Make sure the "Archive file" radio button is selected and press the Browse button to launch the Open dialog box.
  3. In the Open dialog box, navigate to the Flex/Configurator.zip file and click the Open button to select the file and dismiss the dialog box.
  4. Click the Finish button to finish importing the project into your current workspace.
  5. Run Project.

Flex framework features

This example shows off how you can integrate Flash content into a Flex application easily by using the Flex Component Kit for Flash CS3 (see description of ShirtConfigurator.swc above). The various screens such as Help and the final screen showing the configuration details are exposed via States and use Transitions to provide a better loading experience. The application achieves its look using a number of styles specified in CSS as well as images used as skins.

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.

Note: You may use the sample code in your products, commercial or not.

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