Using Flash: Creating a Symbol
Macromedia Flash – Creating a Symbol
A symbol is an object that you create in Flash. As you discovered in Part 1, a symbol can be a graphic, button, or movie clip that you reuse throughout the current FLA or other FLA files. Any symbol that you create is automatically added to the document’s library (Window > Library), so you can use it many times within a document.
When you add animation, you should always animate symbols in Flash instead of animating raw graphics (graphics that you draw) or raw assets that you import (such as a PNG file). For example, if you draw a circle using the Oval tool in Flash, you should convert that circle graphic into a movie clip before you animate it. This helps you reduce the SWF file size and makes it easier to create an animation in Flash.
You will create a movie clip symbol in the following exercise. You will animate this movie clip in later exercises.
In banner2.fla, select the star.png image (imported in Part 1) and then select Modify > Convert to Symbol from the main menu.
The Convert to Symbol dialog box opens (see Figure 4), where you can name a symbol and choose what type of symbol you want it to be.
Type join us into the Name text box (see Figure 4).
You will see the name of the symbol,
join us, in the Library panel after you create the symbol. You will also see an icon that represents movie clips next to the symbol’s name.
Remember that the symbol’s name is different than its instance name because you can have numerous instances of a single symbol on the Stage. For example, you can set an instance name for the
join ussymbol using the Property inspector after you drag it to the Stage from the Library panel. If you drag another instance of
join usto the Stage, you assign it a different instance name. You use the instance name in your ActionScript to reference and manipulate the instance with code, and there are some naming guidelines you must follow when you assign an instance name.
Select the Movie Clip option and then click OK.
This means that you will convert the graphic image into a movie clip symbol. Movie clip symbols have their own Timelines. This means you can animate each movie clip instance on its own Timeline, and on the main Timeline of the document. This is unique to movie clip instances.
In the following exercise you will animate the movie clip.