Sounditem.bitrate, Sounditem.bits – Adobe Extending Flash Professional CS4 User Manual
Page 415
393
EXTENDING FLASH CS4 PROFESSIONAL
SoundItem object
soundItem.bitRate
Availability
Flash MX 2004.
Usage
soundItem.bitRate
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
"8 kbps"
,
"16 kbps"
,
"20 kbps"
,
"24 kbps"
,
"32 kbps"
,
"48 kbps"
,
"56
kbps"
,
"64 kbps"
,
"80 kbps"
,
"112 kbps"
,
"128 kbps"
, and
"160 kbps"
. Stereo sounds exported at 8 Kbps or 16
Kbps are converted to mono. The property is
undefined
for other compression types.
If you want to specify a value for this property, set
soundItem.useImportedMP3Quality
false
.
Example
The following example displays the
bitRate
value in the Output panel if the specified item in the library has the MP3
compression type:
alert(fl.getDocumentDOM().library.items[0].bitRate);
See also
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"
.
Read-only; a Boolean value that specifies whether the file modification date
of the Library item is the same as the modification date on disk of the file
that was imported.
Read-only; a string, expressed as a file:/// URI, that represents the path and
name of the file that was imported into the Library.
soundItem.useImportedMP3Quality
A Boolean value; if
true
, all other properties are ignored, and the imported
MP3 quality is used.
Property
Description