• 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 give even the simplest project a boost 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's support for MP3—a highly compressed yet high-quality audio format—enables you to work with a much broader spectrum of sounds and still keep your Flash file size to a minimum.

This chapter begins with an exploration of the Sound object—the Flash object 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 of some of these methods, review the tutorials and the manual that accompany Flash for additional information. Moving forward, you'll learn how to use the Sound object to play sounds directly from the Library without having to assign them to keyframes. You can adjust the sound volume and its stereo effect, giving you dynamic control based on user interactions or movie conditions, and you can let the user change the sound volume or left-right balance. You'll also learn a way to manage sounds by keeping them outside of your Flash project as external movies. For example, you can build a jukebox that plays tunes that are kept separately from the main interface.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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