Flash: Creating Buttons
Creating a Button
Interactivity, Sound, and Curvy Motions in Flash
A button is a symbol, but it's a symbol that has special states: up, over, down, hit. You can alter the button's appearance for each state, add actions, or incorporate sound.
First, let's create a basic button. Hit F8 to start the process. Name the symbol and check the button properties box. The new screen you'll see already has the four "states" ready
Figure 15: The Four Button States
Be creative with your button states. You may want to shift the position of the button in the "Down" frame or change the colors of some of the states so that they appear to respond to the user's mouse. To make any changes, just move your current frame marker to the frame you want to alter and then use to arrow tool (or the arrow keys) to move it. I've adjusted this sample's "Down" state four pixels to the right and four down.
The final task with the button is to add the action to the "Hit" state. In this case, the owner of MySite.com wants the viewer to go to, you guessed it, MySite.com once the button is clicked.
Figure 16: Action Dialog
While working on your movie, you can test button states by enabling them under Control/Enable Buttons. Now, when you preview your movie, you'll be able to see if the button states are working as you planned.
Comments are welcome
Created: Sep. 29, 1997
Revised: Oct. 1, 1997