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

yes

-

mp3Quality

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

If this attribute is not specified, ActiveSWF will save original quality.

audioBitrate

yes

-

keepOriginalQuality

This attribute allows to keep quality of original sound

boolean

yes

-

sampleRate

Use attribute to define prefered sample rate

If not specified, original sample rate will be used

sampleRate

yes

-

Parent Elements

objects collection

See Also

XML Schema Reference, objects collection.