• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Chapter 14. Adding Sound and Video > Adding Sounds to Buttons

Adding Sounds to Buttons

Auditory feedback helps people who view your movie interact with buttons correctly. For buttons that look like real-world buttons, adding a click sound to the Down frame provides a more realistic feel. For more fanciful buttons or ones disguised as part of the scenery of your movie, adding sound to the Over frame lets users know that they’ve discovered a hot spot.

To enhance buttons with auditory feedback:

Open a Flash file containing a button to which you want to add sound.

(To learn how to create buttons, see Chapter 13.)

Open the file’s Library window (choose Window > Library), and select the button symbol that you want to modify.

From the Options menu, choose Edit.

Flash opens the button in symbol-editing mode.

In the Timeline, add a new layer (click the Add Layer button), and name it Sound.

In the Sound layer, select the Over and Down frames, and choose Modify > Frames > Convert to Blank Keyframes (Figure 14.16).

Figure 14.16. Add a new layer for the sounds in a button, and create keyframes at the points where you plan to assign sounds.

Using the techniques described in “Adding Sounds to Frames” earlier in this chapter, assign a sound to the Over frame and a different sound to the Down frame. Flash displays as much of the waveform as possible in each frame. When you add sounds to buttons, it makes sense to increase the height of the layer that contains sounds (Figure 14.17).

Figure 14.17. Flash displays the waveform of the assigned sound in the keyframe. Unlike movie Timelines, button Timelines have no in-between frames that can contain part of the waveform. Increasing the layer height for a button’s sound layer enlarges any waveforms in the button’s frames, letting you see more detail.

Return to movie-editing mode.

Every instance of the button in the movie now has sounds attached.

To hear the buttons in action, choose Control > Enable Simple Buttons.

When you move the pointer over the button, Flash plays the sound that you assigned to the Over frame. When you click the button, you hear the sound that you assigned to the Down frame.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint