Prueba

Solo disponible en BuenasTareas
  • Páginas : 28 (6848 palabras )
  • Descarga(s) : 0
  • Publicado : 12 de noviembre de 2010
Leer documento completo
Vista previa del texto
942

Chapter 34: Importing Flash CS3 Assets into Flex
Adobe Flash CS3 Professional creates SWF files compatible with Adobe Flash Player 9. Adobe Flex applications also support Flash Player 9, which means that you can import assets from Flash CS3 Professional to use in your Adobe Flex applications. You can create Flex controls, containers, skins, and other assets in Flash CS3 Professional, andthen import those assets into your Flex application. Before you can create Flex components in Flash CS3, you must install the Flex Component Kit for Flash CS3.
Contents

Installing the Adobe Flex Component Kit for Flash CS3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942 About importing Flash CS3 assets into Flex . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943 Using Flash components in a Flex application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949 Adding view states and transitions to Flash components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .954 Using Flash components as skins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 957 Creating a Flash container component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959

Installing the Adobe Flex Component Kit for Flash CS3This section describes the system requirements and installation instructions for the Flex Component Kit for Flash CS3.

System requirements
Your system must meet the following requirements to install the Flex Component Kit for Flash CS3:

• •

Flex 3 Flash CS3 Professional

• Adobe Extension Manager. You can download the Extension Manager from http://www.adobe.com/exchange/em_download/.Installation procedure
The Flex Component Kit for Flash CS3 consists of the FlexComponentKit.mxp file.
Install the Flex Component Kit for Flash CS3 1 Install Flex. 2 3

Change the directory to install_dir/frameworks/flash-integration. Double-click the FlexComponentKit.mxp file to install the necessary files in Flash CS3.

ADOBE PRODUCT X.0 943
User Guide

This file installs the SWCfile that contains the classes necessary to create assets compatible with Flex, and adds the Convert Symbol to Flex Component and Convert Symbol to Flex Container options to the Flash CS3 Command menu. For more information, see “Importing dynamic SWF 9 assets” on page 944.

About importing Flash CS3 assets into Flex
Adobe Flash CS3 Professional lets you create many types of assets for use in aFlex application. You can use Flash CS3 to create simple assets such as icons and logos, you can create more complex assets for use as Flex skins, you can create Flex components, and you can create Flex containers. The way you import these assets depends on the type of asset and where you use the asset in your Flex application. You typically import two types of SWF 9 assets:
Static assets Assetsused for simple artwork or skins that do not contain any ActionScript 3.0 code. Import them in

the same way that you import SWF 8 assets. For more information, see “Importing static assets” on page 943.
Dynamic assets Assets that correspond to Flex components and skins, or assets that contain ActionScript 3.0 code.

These components are designed to work with Flex features such as viewstates and transitions, skinning, and tool tips. To use dynamic assets in a Flex application, export the assets from Flash CS3 to a SWC file, and then link the SWC file to your Flex application. For more information, see “Importing dynamic SWF 9 assets” on page 944.

Importing static assets
The "Embedding Assets" topic in the Flex Developer’s Guide describes how to import SWF 8 files into a Flex...
tracking img