Lesson 1

Work with Sound

 

OBJECTIVE:
In this lesson, you will add background music to a movie and work with layering and repeating sounds.

Sample Solution

Lesson:  Add Sound to a Timeline

  1. Open fl10-1.fla from the drive and folder where your Data Files are stored, then save it as FL_C10_L1_nightclub (your username) to your Chapter 10 Flash folder on the server
  2. Display the Library panel, open the Audio folder to display the list of audio files, click accent1, then click the Play button in the item area at the top of the top of the Library panel to preview the sound
  3. Preview the accent2 and background sounds.
  4. Insert a new layer above the actions layer, then name it ‘audiobackground’
  5. Click frame 1 on the audiobackground layer, display the Properties panel, click the Name list arrow in the SOUND area, click background, then verify that Event appears in the Sync sound list box—Flash adds the sound file to the layer, as indicated by the blue horizontal line through the frames on the audiobackground layer
    [TIP:  When you click the Name list arrow in the SOUND area, a list appears of all sound files that have been imported into the Library panel—the Library panel already contains several sounds]
  6. Test the movie—the background music sound slip plays, ending after about 13 seconds, which is how long it takes to play the sound file one time
  7. Close the Flash Player window

Summary:  You added a sound to the Timeline and verified it was an event sound.

 

Layer Sounds

  1. Insert a new layer above the audiobackground layer, then name it ‘accent1’
  2. Click frame 1 on the accent 1 layer, click the Name list arrow in the SOUND area on the Properties panel, click accent1, then  verify that Event appears in the Sync list box
  3. Insert a new layer above the accent1 layer, then name it accent2
  4. Insert a keyframe in frame 30 on the accent2 layer
  5. Click the Frame view button at the top-right side of the timeline, then click Tiny to display more frames
  6. Click the Name list arrow in the SOUND area on the Properties panel, click accent1, verify that Event appears in the Sync list box
  7. Test the movie—all three sound files play simultaneously for a short time; however, since the sound clips are of different duration, they do not all play to the end of the movie
    [TIP:  When you look at the Timeline, sound lines are blue and layer border lines  are black]
  8. Close the Flash Player window

Summary:  You layered sounds of different durations.

 

Create a Repeating Sound

  1. Click frame 1 on the audiobackground layer, verify that Repeat is displayed in the SOUND area on the Properties pane, change the Number of times to repeat to 3—the sound line on the audiobackground layer now stretches to the end of the movie, frame 200
  2. Click frame 1 on the accent1 layer, then use the Properties panel to change the Number of times to repeat to 5
  3. Click frame 30 on the accent2 layer, then use the Properties panel to change the Number of times to repeat to 4—since the accent2 sound starts in a later keyframe than the accent1 sound, you do not have to repeat it as many times to have it play until the end of the movie
  4. Lock the three audio layers
  5. Drag  the playhead to frame 200 in the Timeline—all the sounds now extend to the same ending frame, frame 200, which is the end of the animation of the sign
  6. Test the movie and let it play until all the sounds stop—the sound files play simultaneously during the animation of the sign—you can tell the animation has ended when the words “Vectors Nightclub “ stop flashing—the blue lines on the Timeline representing the sound waves end at frame 200, the last frame of the movie; however, because the sounds are event sounds, they continue to play even after the playhead reaches frame 200, each stopping only when it reaches the end of the number of repetitions you specified
  7. Click the Frame view button at the top left of the Timeline, then click Normal to display fewer frames
  8. Close the Flash Player window
  9. Save your work

Summary:  You set three sounds to repeat, which causes then to play simultaneously to the same ending frame, frame 200.