SoundItem object
271
Description
Property; a string that specifies the bit rate of a sound in the library. This property is available
only for the MP3 compression type. Acceptable values are
"8kbps"
,
"16kbps"
,
"20kbps"
,
"24kbps"
,
"32kbps"
,
"48kbps"
,
"56kbps"
,
"64kbps"
,
"80kbps"
,
"112kbps"
,
"128kbps"
, and
"160kbps"
. The property is
undefined
for other compression types.
Note:
When an MP3 is imported to the library, the Use imported MP3 quality Export setting is
checked by default. The
bitRate
property cannot be set with this setting checked.
Example
The following example displays the
bitRate
value in the Output panel if the specified item in the
library has MP3 compression type:
alert(fl.getDocumentDOM().library.items[0].bitRate);
soundItem.bits
Availability
Flash MX 2004.
Usage
soundItem.bits
Description
Property; a string that specifies the bits value for a sound in the library that has ADPCM
compression. Acceptable values are
"2 bit"
,
"3 bit"
,
"4 bit"
, and
"5 bit"
.
Example
The following example displays the bits value in the Output panel if the currently selected item in
the library has ADPCM compression type:
alert(fl.getDocumentDOM().library.items[0].bits);
soundItem.compressionType
Availability
Flash MX 2004.
Usage
soundItem.compressionType
Description
Property; a string that specifies that compression type for a sound in the library. Acceptable values
are
"Default"
,
"ADPCM"
,
"MP3"
,
"Raw"
, and
"Speech"
.
Example
The following example changes an item in the library to compression type Raw:
fl.getDocumentDOM().library.items[0].compressionType = "Raw";
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...