If you are extending an existing component, place an instance of that component and any other
6.
base classes in Frame 2 of the Assets layer.
To do this, select the symbol from the Components panel and drag it onto the Stage. If you are
extending a base class, open StandardComponents.fla from the FirstRun/ComponentFLA
folder and drag the class from the library to the Stage.
Note: When you drag UIComponent to the component library, the folder hierarchy in the 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 library so that it's organized well and you avoid duplicate symbols.
Add any graphical assets used by this component on Frame 2 of your component's Assets layer.
7.
Any asset that a component uses (whether it's another component or media such as bitmaps)
should have an instance placed in the second frame of the Assets layer.
Your finished symbol should look something like this:
8.
Defining the movie clip as a component
The movie clip symbol must be linked to an ActionScript class file in the Component Definition
dialog box. This is how Flash knows where to look for the component's metatags. (For more
information about metatags, see
options you can choose in the Component Definition dialog box as well.
To define a movie clip as a component:
Select the movie clip in the library, and choose Component Definition from the Library options
1.
menu.
You must enter an AS 2.0 class.
2.
If the class is part of a package, enter the full package name.
boundingBox_mx
"Adding component metadata" on page
935.) There are other
Creating a component movie clip
929
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers