MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Manual page 29

Developing flex components and themes in flash authoring
Table of Contents

Advertisement

Insert a blank keyframe in the second frame of the assets layer by selecting the frame, and then
14.
selecting Insert > Timeline > Blank Keyframe. The following figure shows the layers for the
BlueButton symbol:
Find the Button control in the Flex Components list:
15.
If you do not see the Flex Components listed in the Components panel, see
classes and components to the Flash IDE" on page
Drag the Button control from the Flex Components list onto the second frame of the
16.
assets layer.
Flash adds the Button to the Library as a Compiled Clip asset.
Right-click the BlueButton movie clip in the Library and select Component Definition.
17.
In the Component Definition dialog box, set the AS2.0 Class field to BlueButton.
18.
Click OK.
19.
Flash converts the symbol to a component.
Right-click the component in the Flash Library and select Export SWC File.
20.
Save the new SWC file as BlueButton.swc.
21.
In a text editor, create a new MXML file that contains the following code:
22.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*">
<BlueButton label="Blue Button" />
</mx:Application>
8.
Creating simple components
"Adding Flex
29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX - DEVELOPING COMPONENTS AND THEMES and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flex

Table of Contents