|
|
|
|
| Tutorial |
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 it.
• 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 will respond to the mouse click.
This area is invisible in the movie.
You can also create buttons using the ActionScript MovieClip object. See “Using button events
with movie clips to trigger scripts” on page 296. You can add buttons to your movie using button
components. See “The PushButton component” on page 299 and “The RadioButton
component” on page 300.
For an interactive lesson on creating buttons in Flash, choose Help > Lessons > Buttons.
To create a button:
1 Choose Edit > Deselect All to ensure that nothing is selected on the Stage.
2 Choose 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 choose 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
|
|
|
|
|
|
| Link Partners: Asia florist, Flowers to India, Hong kong flowers, Site submit, Cheap web hosting, China florist, Japan florist |
|