Macromedia Flash 8 Bible Free Open Book

Macromedia Flash 8 Bible

Previous Page
Next Page

Adding Sound to the Timeline

In addition to the use of sounds to enhance the interactivity of buttons, another popular use for sound in Flash is to provide a background score. The simplest way to achieve this is to place the sound within its own layer in the Main Timeline (Scene 1), at the precise frame in which you want the sound to begin. To do this, you must first import the sound (as we described earlier in this chapter) and create a new layer for it.

On the CD-ROM 

If you don't have access to sounds, you can use the sample sound atmospheres_1 to practice. This sound is in the ch15 folder of the Macromedia Flash 8 Bible CD-ROM. It is available in both WAV and AIF formats.

Adding sound files to the timeline is similar to assigning sound to a button. To add sounds to a timeline, follow these steps:

  1. Add a new layer in the Timeline window and label the layer with the name of the sound.

    You can use a name such as "sound" or "background track."

  2. Create a keyframe on the sound layer at the frame where you want the sound to begin.

  3. With that keyframe selected, open the Property inspector.

    Make sure you have expanded the view to show all of the sound attributes.

  4. If you remembered to import the sound that you want to use, you can now choose that sound clip from the Sound drop-down menu.

    If you find yourself stuck at this point, review the preceding steps and/or retrace your steps through the methodology for adding sound to a button.

  5. From the Effect menu, choose how the sound should be handled by Flash.

    The Effect menu offers several preset fading and panning treatments, plus Custom, which invokes the Edit Envelope dialog box. For no special effect, choose None. For more about the Effect presets and the Edit Envelope dialog box, refer to the subsequent section, "Editing Audio in Flash."

  6. From the Sync menu, choose one of four options — Event, Start, Stop, or Stream — to control how you want the sound to be synchronized.

    See the next section, "Organizing Sounds on the Timeline," for a detailed explanation of Sync options.

  7. Specify how many times you want the sound to loop.

    To loop the sound indefinitely (for example, as a background track), choose Loop in the second drop-down menu in the Sync parameters. If you want the sound to loop only for a specific number of times, choose Repeat in the menu and enter a number in the text field to the right of the menu. For specific information about looping Stream sounds, refer to the next section.

  8. Perform any last-minute editing or finessing of the sound file (see "Editing Audio in Flash" later in this chapter).

Your sound is now part of the timeline. Its waveform is visible on the layer to which it was added. Test your sound by pressing the Enter key on your keyboard, which plays the timeline. Or, for sound with a Sync setting of Stream, manually "scrub" the sound by dragging the Playhead across the timeline. To perform the most accurate test of the sound, use either Control ð Test Scene or Control ð Test Movie to see and hear it as a Flash movie file (.swf).

Tip 

If you sync a sound to the timeline using the Stream feature, you should test your Flash movie file (.swf) on various platforms and machines with different processor speeds, especially if the timeline is always playing animation. What looks and sounds good on a fast Pentium IV might be less impressive on an underpowered legacy machine, like a firstor second-generation Pentium machine.


Previous Page
Next Page
Index: [A][B][C][D][E][F][G][H][I][J][K][L][M][N][O][P][Q][R][S][T][U][V][W][X][Y][Z]


     Main Menu
Table of Contents
Back Cover
Macromedia Flash 8 Bible
Foreword
Preface
Part I: An Introduction to Flash Web Production
Part II: Mastering the Flash Environment
Part III: Creating Animation and Effects
Part IV: Integrating Media Files with Flash
Chapter 15: Adding Sound
Identifying Sound File Import and Export Formats
Importing Sounds into Flash
Assigning a Sound to a Button
Adding Sound to the Timeline
Organizing Sounds on the Timeline
Synchronizing Audio to Animations
Stopping Sounds
Applying Behaviors that Control Sound
Editing Audio in Flash
Sound Optimization Overview
Publish Settings for Audio
Fine-Tuning Sound Settings in the Library
Final Sound Advice and Pointers
Summary
Chapter 16: Importing Artwork
Chapter 17: Displaying Video
Part V: Adding Basic Interactivity to Flash Movies
Part VI: Distributing Flash Movies
Part VII: Approaching ActionScript
Part VIII: Applying ActionScript
Part IX: Integrating Components and Data-Binding
Part X: Expanding Flash
Part XI: Appendixes
Index
List of Figures
List of Tables
List of Listings
List of Sidebars


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele