• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Chapter 8. Controlling Sound

Incorporating sound into your Flash movie can enhance the animation and interactivity and add excitement to even the simplest project by engaging more of the user’s senses. You can play background music to establish the mood of your movie, use narration to accompany a story, or give audible feedback to interactions such as button clicks and drag-and-drop actions. Flash supports several audio formats for import, including WAV, AIF, and MP3, which enables you to work with a broad spectrum of sounds. Flash also gives you many options for sound export, from speech-quality compression to high-quality MP3 compression, to help keep your Flash file size to a minimum.

This chapter explores the Sound class—the Flash class that lets you control sound with ActionScript. You should already be familiar with basic sound handling in Flash, such as importing sounds and assigning them to keyframes with the Event, Start, Stop, and Stream Sync options. If you are unsure about some of these techniques, review the tutorials and the Help files that accompany Flash for additional information. Moving forward, you’ll learn how to use the Sound class to play sounds from the Library dynamically without having to assign them to keyframes. You’ll learn how to load sounds that reside outside your movie, enabling efficient management of your Flash and sound content. Using ActionScript, you can start, stop, and adjust the sound volume or its stereo effect, giving you control based on user interactions or movie conditions. You’ll learn to use the Sound class’s properties and events to time your sounds with animations or with other sounds. You’ll also learn how to retrieve and display information about an MP3 file using its ID3 tag, which can tell you file information like song title, artist, or genre.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint