Flash provides a number of ways to use sound. You can make the sound play independently of the timeline, or synchronize the animation with a sound. You can also add sound to the button, making the button more contagious. In addition, you can make your voice more graceful by setting the fade effect. This shows that the flash of sound support has been from the previous practical, turned to the present both practical and beautiful stage.
1. Import sound into Flash
You can add sound effects to your flash works only after you import external sound files into flash. Can directly import flash audio file, mainly has WAV and MP3 two kinds of formats. In addition, if QuickTime 4 or higher is installed on your system, you can import the AIFF format and the QuickTime movie format, which has only sound and no screen.
The following describes how to import sounds into flash animations.
(1) Create a new Flash movie document or open an existing Flash movie document.
(2) Execute the "file" | "Import" | "Import to Library" command, pop-up the "Import to Library" dialog box, in which you select the sound file to import, click the Open button to import the sound, as shown in Figure 5-8.
Figure 5-8 The Import to Library dialog box
(3) When the sound is imported, you can see the sound file just imported in the library panel, and you can use the sound object as you would use a symbol in the future, as shown in Figure 5-9.
Figure 5-9 The sound file in the library panel
2. Reference Sound
The timeline does not change after you import the sound from the outside into Flash. Sound files must be referenced for sound objects to appear on the timeline to further apply sound.
Then continue with the previous section.
(1) Rename layer 1 to sound, select Frame 1th, and then drag and drop the sound object in the library panel into the scene, as shown in Figure 5-10.
Figure 5-10 Referencing a sound to the timeline
(2) At this time will find the "sound" layer 1th frame a short line, which is actually the sound object waveform start, arbitrary selection of a later frame, such as the 30th frame, press the F5 key, you can see the sound object waveform, as shown in Figure 5-11. This indicates that the sound has been referenced to the sound layer. Click on the keyboard on the return key, you can hear the sound, if you want to hear the effect of a more complete sound, you can press the shortcut keys Ctrl+enter.
Figure 5-11 Sound on a layer