sound Element

The sound element describes a sound object with the attributes described below.

Syntax

<sound id="objectId" src="soundFile" [mp3Quality="mp3BitRate"]/>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier.

id

no

-

src

Path to the sound file, which will be loaded into the movie clip.

Use following notation for src attribute:
For resources located in local filesystem: "C:\My folder\myfile.wav"
For web resources use HTTP URLs: "http://mysite.com/myfile.wav"

string

no

-

mp3Quality

Sound quality in terms of bitrate (Kbps) with which the sound file will be stored in the generated flash movie.

It can take the following values: 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320.

If this attribute is not specified, ActiveSWF will preserve the original quality of the sound file.

This attribute is used to downsample sounds automatically when a flash movie is generated.

string

yes

-

Parent Elements

objects collection

See Also

XML Schema Reference, objects collection.