The three major types of sounds for use in Flash movies include music, sound effects, and narration. Learn how to add sound to Flash movies, how to use media components and work with media classes (from Macromedia Flash MX Professional 2004 by Bill Sanders, 2004, Sams, ISBN 0672326051).
Adding Video and Sound - Setting Sound Properties (Page 3 of 9 )
Once you have placed a sound file into the Library panel, especially if the file is not an MP3 file, you should reduce the file to the smallest possible size for effective use. Select the sound in the Library panel and click the information icon at the bottom of the Library panel to open the Sound Properties dialog box. You will see the information about the original file size. For example, the extracted sound from the AVI file showed the following information:
44 kHz Stereo 16 bit 22.8 s 4020.8 kB
MP3 has the best file-compression format, so selecting MP3 from the Compression drop-down menu generally offers the best file size reduction while maintaining quality. Checking the Preprocessing check box converts a stereo file to mono (only available for bit rates of 20Kbps or greater). The bit rate can be set from 8Kbps to 160Kbps. You can see that it has a major effect on the file size. For example, at 8Kbps, a 4MB file converted to MP3 is about 23KB. However, at 160Kbps, the same file is about 456KB, or 20 times as large.
Once the settings have been made, the new file size is shown at the bottom of the Sound Properties dialog box. From the original size information of the extracted AVI file, the size now shows as follows:
8 kbps Mono 22.8 kB, 0.6% of original
Figure 10.3 shows how the Sound Properties dialog box appears after the adjustments have been made.
Figure 10.3 Sound properties settings.
Further settings for sound can be made in the Publish Settings dialog box. Select File, Publish Settings and click the Flash tab. Clicking the Set button for either the Audio Stream or Audio Event settings will provide setting choices similar to those found in the Sound Properties dialog box. You can then elect to override the sound settings. One primary use of overriding the settings made in the Sound Properties dialog box is for quickly testing different settings without having to reset them in the Sound Properties dialog box.
Once you have added a sound to a movie, you can use the Edit Envelope window to change the beginning and ending position of the sound by moving the Time In and Time Out controllers. Also, you can set the left and right channels to one of the following effects:
Left Channel (only)
Right Channel (only)
Fade Left to Right
Fade Right to Left
Fade In
Fade Out
Custom
You can set one of these effects by selecting it from the Effect drop-down menu in the Property Inspector or the Edit Envelope window. Using the Edit Envelope window, you set custom effects by dragging anchor points left and right and up and down. The top sound pane sets the left channel, and the bottom pane sets the right channel. Dragging the anchor points increases or decreases the volume for each channel. You can create a total of eight anchor points for each channel by clicking on the volume line. Figure 10.4 shows the Edit Envelope window with custom effect settings. The Time In controller has been moved to the right so that the sound will start playing after the first portion has been skipped. The shaded area of the sound wave shows the part of the sound that will not be played.
Figure 10.4 The Edit Envelope window.
As noted, the Edit Envelope window cannot be used until the sound has been loaded into the movie. The next section shows the different methods available for adding sounds to movies.
This chapter is from Macromedia Flash MX Professional 2004, by Bill Sanders (Sams, 2004, ISBN: 0672326051). Check it out at your favorite bookstore today.