Tutorial > Add sound to a button
Add sound to a buttonWhen you create a button symbol, Flash creates keyframes for the different button states in relation to the mouse pointer. The Over keyframe, for example, represents the button's appearance when the pointer is over the button. Other button keyframes include Up, Down, and Hit. For more information about keyframes in button symbols, refer to the Buttons lesson (choose Help > Lessons > Buttons).
Now you'll add a sound to the button's Down frame, which means the sound will play when the user clicks the button. Because you're adding the sound to the button symbol in the library, not just to an instance of the symbol, the sound will play for each instance of the button.
1 | In the Library window, double-click the Buttons folder to expand it. |
2 | Select the fly it BUTTON symbol, then choose Edit from the Library Options menu. You can also double-click the symbol's icon in the Library window. |
Flash switches to symbol-editing mode. | |
3 | Choose Insert > Layer and name the new layer Sound. |
Remember, you can double-click a layer name to rename that layer.
![]() |
|
4 | To insert a blank keyframe, select the Down frame (Frame 3) of the Sound layer and choose Insert > Keyframe. |
5 | To define the sound properties, double-click Frame 3 of the Sound layer. |
In addition to the Sound panel, other panels might appear. | |
6 | In the Sound panel, select wizz.mp3 from the Sound pop-up menu. Then close the panel. |
7 | Choose Edit > Edit Movie or click Scene 1 in the upper left corner of the window to return to movie-editing mode from symbol-editing mode. |
![]() |
Note: Remember to save your work frequently. Also remember that you can choose Control > Test Movie to hear how the sound plays in a SWF.