Adding Sounds To A Document - MACROMEDIA FLASH 8-USING FLASH Use Manual

Using flash
Table of Contents

Advertisement

If you want to share sounds among Flash documents, you can include the sounds in shared
libraries. For more information, see
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
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
sounds for export" on page
Sounds recorded in formats that are not multiples of 11 kHz (such as 8, 32, or 96 kHz)
are resampled when imported into Flash.
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.
You can also drag a sound from a common library into the library for the current
document. For more information, see

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
Sound object. For more information, see l
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.
"Working with common libraries" on page
321.
"Working with common libraries" on page
oadSound (Sound.loadSound method)
36. To use a
"Using sounds with Sound
"Compressing
method of the
loadSound
in
Adding sounds to a document
36.
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents