MACROMEDIA FLASH 8-USING FLASH Use Manual page 87

Using flash
Table of Contents

Advertisement

Each frame in the Timeline of a button symbol has a specific function:
The first frame is the Up state, representing the button whenever the pointer is not over
the button.
The second frame is the Over state, representing the button's appearance when the pointer
is over the button.
The third frame is the Down state, representing the button's appearance as it is clicked.
The fourth frame is the Hit state, defining the area that responds to the mouse click. This
area is invisible in the SWF file.
You can also create a button using a movie clip symbol or a button component. There are
advantages to using each type of button, depending on your needs. Creating a button using a
movie clip enables you to add more frames to the button or add more complex animation.
However, movie clip buttons have a larger file size than button symbols. Using a button
component allows you to bind the button to other components, to share and display data in
an application. Button components also include prebuilt features, such as accessibility
support, and can be customized. Button components include the PushButton and
RadioButton. For more information, see Chapter 4, "Button component," in Using
Components.
To create a button:
1.
Select Edit > Deselect All to ensure that nothing is selected on the Stage.
2.
Select Insert > New Symbol, or press Control+F8 (Windows) or Command+F8
(Macintosh).
To create the button, you convert the button frames to keyframes.
3.
In the Create New Symbol dialog box, enter a name for the new button symbol, and for
Behavior select Button.
Flash switches to symbol-editing mode. The Timeline header changes to display four
consecutive frames labeled Up, Over, Down, and Hit. The first frame, Up, is a blank
keyframe.
4.
To create the Up state button image, use the drawing tools, import a graphic, or place an
instance of another symbol on the Stage.
You can use a graphic or movie clip symbol in a button, but you cannot use another
button in a button. Use a movie clip symbol if you want the button to be animated.
5.
Click the second frame, labeled Over, and select Timeline > Keyframe.
Flash inserts a keyframe that duplicates the contents of the Up frame.
6.
Change the button image for the Over state.
Creating buttons
87

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF