![](https://csdnimg.cn/release/download_crawler_static/1768891/bg5.jpg)
ADOBE FLEX 3 5
• Button over skin: MyButtonOverSkin symbol
• Button up skin: MyButtonUpSkin symbol
The following image shows these movie clip symbol definitions for the skins in Flash CS3 after running the Convert
Symbol to Flex Component command:
Create a symbol in Flash
1
Ensure that you installed the Flex Component Kit for Flash CS3. For installation instructions, see “Installing the
Adobe Flex Component Kit for Flash CS3” on page 1.
2 Flash CS3, select File > New to open the New Document dialog box.
3 Select Flash File (ActionScript 3.0) as the file type.
4 Save the file as ButtonSkins.fla.
5 Create four movie clip symbols, one for each Button skin.
• When you create a symbol, Flash prompts you to specify the symbol name. By default, the symbol name
becomes the class name of your Flex component. Also, in Flex Builder, your component’s class name is displayed
in code hints.
However, the Convert Symbol to Flex Component command removes all nonalphanumeric characters
(including spaces) from the class name and, if the first character is a number, it prefixes the class name with
an underscore. Therefore, it is recommended that you use only uppercase and lowercase letters in the symbol
name, and do not use spaces.
• Set the registration point to the upper-left corner of the symbol.