User Guide
128 Creating Components
4. If the Linkage section of the Create New Symbol dialog box isn’t open, click the Advanced
button to reveal it.
5. In the Linkage area, select Export for ActionScript and deselect Export in First Frame.
6. In the Identifier text box, enter a linkage identifier such as Dial_ID.
7. in the AS 2.0 Class text box, enter Dial. This value is the component class name. If the class
is in a package (for example, mx.controls.Button), enter the entire package name.
8. Click OK.
Flash changes to symbol-editing mode.
9. Insert a new layer. Name the top layer Actions and the bottom layer Assets.
10. Select Frame 2 in the Assets layer and insert a keyframe (F6).
This is the structure of the component movie clip: an Actions layer and an Assets layer.
The Actions layer has one keyframe and the Assets layer has two keyframes.
11. Select Frame 1 in the Actions layer and open the Actions panel (F9). Enter a stop();
global function.
This prevents the movie clip from proceeding to Frame 2.
12. Select File > Import > Open External Library and select the StandardComponents.fla file
from the Configuration/ComponentFLA folder. For example:
■ In Windows: C:\Program Files\Macromedia\Flash 8\language\
Configuration\ComponentFLA\StandardComponents.fla.
■ On the Macintosh: HD/Applications/Macromedia Flash 8/Configuration/
ComponentFLA/StandardComponents.fla
13. Dial extends the UIComponent base class; therefore, you must drag an instance of the
UIComponent into the Dial document. In the StandardComponents.fla library, browse to
the UIComponent movie clip in the following folder: Flash UI Components 2 > Base
Classes > FUIObject Subclasses and drag it to the Dial.fla library.
Asset dependencies are automatically copied to the Dial library with UIComponent.
NOTE
For information about folder locations, see “Configuration folders installed with
Flash” in Getting Started with Flash.
NOTE
When you drag UIComponent to the Dial library, the folder hierarchy in the Dial
library is changed. If you plan to use your library again, or use it with other groups of
components (such as the version 2 components), you should restructure the folder
hierarchy to match the StandardComponents.fla library so that it’s organized well
and you avoid duplicate symbols.