Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Once you've imported a sound file into your application, you can edit the compression of the sound file through the Library. Remember, controlling the compression of an audio file is just like controlling the compression of an image. You can reduce the file size without ever affecting the original file, and any changes that I make in Flash are not going to permanently damage the imported file in Flash, so I can always go back to the original. So just keep that in mind that you're not going to make any permanent changes to the sound by messing with the compression settings through the Library.
To open up the Compression Settings window, double-click the sound's icon in the Library. Remember don't double-click the name. That's going to open up the name changing mode. Double-click the sound's icon and Flash will open up the Sound Properties window. Here you'll see that Compression is set to Default. To adjust the sound compression, click the drop-down and choose a compression mode. Here you just need to know that ADPCM and Raw offer very little compression, which means larger file sizes.
Speech gives a lot of compression and is really best for speech, and MP3 is usually the best choice for songs. So anything that's really short like a sound for a button would be okay if you used ADPCM or Raw and for longer sounds use MP3 or Speech. So I'll select MP3 and then I can control the Bit Rate. The default is 16 kbps. Then you can control the quality with the drop-down menu here. I'm just going to leave the default, Fast, and most of the time you're going to want to just keep it at Fast.
So click the Test button to preview the compressed sound. (Music playing.) So I'll click Stop to stop the sound. Now, you can adjust the compression settings however you'd like. So I can raise the compression and compare that to the lower compression. (Music playing.) Note the feedback at the bottom of the menu.
Flash tells you that the file size right now is 521.3 KB, which is 11.3% of the original. If I go back to 16 kbps, then the file size is 52 K. So this impacts the size of your SWF file. Again, all of these are only applied when you export your file as a SWF. So your FLA contains the original music file and these compression settings are only applied when you output your SWF file. So I'll click OK.
And then I'll test the movie in the Flash Player to hear the sound. (Music playing.) So to adjust sound compression settings, just double-click the Sound icon in the Library.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.