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

Stopping Sounds

Although event sounds normally play to the end, you can force them to stop at a specific keyframe. To issue an instruction to stop a specific sound, you must set that sound’s Sync parameter to Stop.

To stop playback of a sound:

Create a new 15-frame Flash document with two fairly long event sounds (at least 3 seconds); place one sound in Keyframe 1 and the other in Keyframe 5.

(For more detailed instructions, see “Adding Sounds to Frames” earlier in this chapter.) In this example, Keyframe 1 contains the sound wolf howl, and Keyframe 5 contains the sound Cricket.

In the Timeline, insert a new blank keyframe at Frame 8 (Figure 14.29).

Figure 14.29. Inserting a new keyframe cuts off your view of the preceding sound’s waveform in the Timeline. If the sound is an event sound, however, it continues playing through the keyframe.

Flash cuts off the waveform at Frame 8 because of the keyframe, but on playback, the event sounds continue to play after Frame 8.

Select Keyframe 8.

In the Frame Property Inspector, from the Sound pop-up menu, choose wolf_howl.

From the Sync pop-up menu, choose Stop (Figure 14.30).

Figure 14.30. To stop a sound’s playback at a specific point in a movie, create and then select the keyframe where the sound should stop. From the Frame Property Inspector’s Sound pop-up menu, choose the sound you want to stop. From the Sync pop-up menu, chooseStop. Here, the Stop instruction refers to the wolf_howl sound.

Flash uses this instruction to stop playback of the wolf-howl sound at Frame 8. Flash places a small square in the middle of Keyframe 8 in the Timeline to indicate that the frame contains a stop-sound instruction (Figure 14.31).

Figure 14.31. In the Timeline, a small square in the middle of a keyframe indicates the presence of the stop-sound instruction.

Position the playhead in Frame 1, and play your movie to hear the sounds in action.

The wolf howl starts immediately; the crickets kick in at Frame 5. When the playhead reaches Frame 8, the wolf cuts out, but the crickets continue playing even after the playhead reaches the end of the movie.



Not a subscriber?

Start A Free Trial

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