311
12
CHAPTER 12
Working with Sound
Macromedia Flash Basic 8 and Flash Professional 8 offer several ways to use sound. You can
make sounds that play continuously, independent of the Timeline, or you can synchronize
animation to a sound track. You can add sounds to buttons to make them more interactive
and make sounds fade in and out for a more polished sound track.
There are two types of sounds in Flash: event sounds and stream sounds. An event sound
must download completely before it begins playing, and it continues playing until explicitly
stopped. Stream sounds begin playing as soon as enough data for the first few frames has been
downloaded; stream sounds are synchronized to the Timeline for playing on a website.
If you’re creating Flash content for mobile devices, Flash Professional 8 also lets you include
device sounds in your published SWF file. Device sounds are encoded in the device’s natively
supported audio format, such as MIDI, MFi, or SMAF. For more information, see
“About
using sounds in Flash Lite” on page 326
.
You select compression options to control the quality and size of sounds in exported SWF
files. You can select compression options for individual sounds using the Sound Properties
dialog box or define settings for all sounds in the document in the Publish Settings dialog box.
You can use sounds in shared libraries to link a sound from one library to multiple
documents. For more information, see
“Using shared library assets” on page 104
. You can also
use the ActionScript
onSoundComplete
event to trigger an event based on the completion of a
sound. For more information, see
“About the onSoundComplete event” on page 320
.
You can use behaviors that are prewritten ActionScript scripts to load and control the
playback of sounds. As with behaviors, the media components contain prewritten
ActionScript scripts to load and control sounds (MP3 sounds only) but also provide a
controller for stop, pause, rewind, and so on. For more information on using the media
components, see
“Using the FLVPlayback component (Flash Professional only)” on page 304
.
NO
TE
You can also use actions to load sounds dynamically. For more information, see
attachSound (Sound.attachSound method)
and
loadSound (Sound.loadSound
method)
in
ActionScript 2.0 Language Reference
.
Summary of Contents for FLASH 8-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 ...