Task: Import a Sound
The actual process of importing sounds into Flash is very simple. Follow these steps:
In a new file, select File, Import... and then select an audio file to import. (In Windows, you'll likely find a few WAV files in the folder C:\Windows\Media, or just search for *.wav and *.mp3; Macintosh users can run a Find for Files of Type: Sound.) You can filter the files shown in the Import dialog box by setting the Files of Type drop-down list to All Sound Formats, as shown in Figure 10.1).
After selecting an audio file and clicking OK in the Import dialog box, you probably won't see (or hear) anything different. However, the sound has been imported and now resides in the Library. Just open the Library window (Ctrl+L) to see it. Now that your movie contains the sound file, you can use the sound.
Figure 10.1 When importing audio (or any media type for that matter), you can filter the types of files listed to include just sound formats.
Although we're not covering how to "use" sounds in depth until the next section, it's very easy. Let's do it now. There are two basic ways to use the sound in a keyframe. One way is to drag the sound from the Library window onto the stage. However, this method requires an available editable frame (both an unlocked layer marked as editable with pencil and the current frame marker in a non-tweened frame). The other method requires you to select a keyframe (just click under "1" in your timeline) and then in the Properties panel select the sound you imported from the drop-down list (as shown in Figure 10.2). This list will display all the sounds previously imported into your movie.
Test the movie, and you should hear the sound. (Of course, your computer speakers and sound card must be functioning.)
Figure 10.2 The imported sound appears in both the Library and in the Properties panel (when a keyframe is selected).
Importing Sounds from Another Library
I'm sure you'll agree that importing a sound is simple. There is, however, another way to import sounds. You can drag a sound directly from another Flash movie's Library. Either drag the sound item from one Library to the other or drag the sound onto the stage (when the current frame and current layer are open for editing). You can try this by opening the Sounds Library that ships with Flash. Make sure your Library is opened; then select Window, Common Libraries, Sounds. Position both Library windows so you can drag sounds from the Sounds Library to your file's current Library. You may notice that if you try the second method (that is, dragging from the Sounds Library to your stage), each sound will also be added to your file's library. Although a few of the sounds included in the Sounds Library are fun, this method will likely be more helpful when you want to take sounds from older Flash files you've made.