Adding sounds to buttons
315
Start
is the same as Event, except that if the sound is already playing, no new instance of
the sound plays.
Stop
silences the specified sound.
Stream
synchronizes the sound for playing on a website. Flash forces animation to keep
pace with stream sounds. If Flash can’t draw animation frames quickly enough, it skips
frames. Unlike event sounds, stream sounds stop if the SWF file stops playing. Also, a
stream sound can never play longer than the length of the frames it occupies. Stream
sounds are mixed when you publish your SWF file.
An example of a stream sound is the voice of a character in an animation that plays in
multiple frames.
9.
Enter a value for Repeat to specify the number of times the sound should loop, or select
Loop to repeat the sound continuously.
For continuous play, enter a number large enough to play the sound for an extended
duration. For example, to loop a 15-second sound for 15 minutes, enter 60. Looping
stream sounds is not recommended. If a stream sound is set to loop, frames are added to
the file and the file size is increased by the number of times the sound is looped.
Adding sounds to buttons
You can associate sounds with the different states of a button symbol. Because the sounds are
stored with the symbol, they work for all instances of the symbol.
To add sound to a button:
1.
Select the button in the Library panel.
2.
Select Edit from the options menu in the upper right corner of the panel.
3.
In the button’s Timeline, add a layer for sound.
4.
In the sound layer, create a regular or blank keyframe to correspond with the button state
to which you want to add a sound.
For example, to add a sound that plays when you click the button, create a keyframe in the
frame labeled Down.
5.
Click the keyframe you created.
6.
Select Window > Properties.
NO
TE
If you use an MP3 sound as a stream sound, you must recompress the sound for
export. You can export the sound as an MP3 file, with the same compression
settings that it had on import. For more information, see
“Compressing sounds for
export” on page 321
.
Summary of Contents for FLASH 8-USING FLASH
Page 1: ...Using Flash...
Page 12: ...12 Contents...
Page 110: ...110 Using Symbols Instances and Library Assets...
Page 128: ...128 Working with Color Strokes and Fills...
Page 156: ...156 Drawing...
Page 190: ...190 Working with Text...
Page 224: ...224 Working with Graphic Objects...
Page 270: ...270 Creating Motion...
Page 310: ...310 Working with Video...
Page 362: ...362 Working with Screens Flash Professional Only...
Page 386: ...386 Creating Multilanguage Text...
Page 454: ...454 Data Integration Flash Professional Only...
Page 500: ...500 Publishing...
Page 534: ...534 Creating Accessible Content...