
Adding sounds to a document
313
If you want to share sounds among Flash documents, you can include the sounds in shared
libraries. For more information, see
“Working with common libraries” on page 36
. To use a
sound in a shared library, you assign the sound file an identifier string in the Linkage
Properties dialog box. The identifier can also be used to access the sound as an object in
ActionScript. For information on objects in ActionScript, see
“Using sounds with Sound
objects” on page 316
.
Sounds can use considerable amounts of disk space and RAM. However, MP3 sound data is
compressed and smaller than WAV or AIFF sound data. Generally, when using WAV or AIFF
files, it’s best to use 16-bit 22 kHz mono sounds (stereo uses twice as much data as mono), but
Flash can import either 8- or 16-bit sounds at sample rates of 11, 22, or 44 kHz. Flash can
convert sounds to lower sample rates on export. For more information, see
“Compressing
sounds for export” on page 321
.
If you want to add effects to sounds in Flash, it’s best to import 16-bit sounds. If you have
limited RAM, keep your sound clips short or work with 8-bit sounds instead of 16-bit
sounds.
To import a sound:
1.
Select File > Import > Import to Library.
2.
In the Import dialog box, locate and open the desired sound file.
Adding sounds to a document
To add a sound to a document from the library, you assign the sound to a layer and set
options in the Sound controls in the Property inspector. It is recommended that you place
each sound on a separate layer.
You can load a sound into a SWF file during runtime, using the
loadSound
method of the
Sound object. For more information, see l
oadSound (Sound.loadSound method)
in
ActionScript 2.0 Language Reference
.
To test sounds that you add to a document, you can use the same methods you use to preview
frames or test SWF files: Drag the playhead over the frames containing the sound or use
commands in the Controller or the Control menu.
NO
TE
Sounds recorded in formats that are not multiples of 11 kHz (such as 8, 32, or 96 kHz)
are resampled when imported into Flash.
NO
TE
You can also drag a sound from a common library into the library for the current
document. For more information, see
“Working with common libraries” on page 36
.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...