17.3. Adding a Sound to a Timeline for Playback
Problem
You want to add an imported sound to your movie’s timeline.
Solution
Create a new layer within the timeline into which you want to add the sound, create a new keyframe if necessary, and with the keyframe selected, drag the sound from the library onto the stage.
Alternatively, instead of dragging the instance from the library onto the stage, you can select the keyframe, and select the sound you want to add from the Sound menu in the Property inspector.
Discussion
Obviously, before you can add a sound to a timeline for playback, you need to import the sound into the movie. See Recipe 17.1 for more information on that process. After you have imported a sound, you can add it to any keyframe by selecting that keyframe and then dragging the sound symbol from the library and dropping it on the stage. It is a good practice to always create a new layer for each sound in your timeline. Here is the step-by-step process for adding an imported sound to the movie:
Create a new layer in your timeline to which you want to add the sound.
Name the layer with a name that describes the sound you are adding to it. For example, if the sound is a narration, you could name the layer Narration Sound.
If you want the sound to start on a frame other than the first frame, add a keyframe at the frame from which you want the sound to start playback.
Select the keyframe to which you want to add the sound.
Open the library, and drag an instance of the sound symbol onto ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access