User Guide
396 Objects
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";
The following example changes a selected item’s compression type to Speech:
fl.getDocumentDOM().library.getSelectedItems()[0].compressionType =
"Speech";
soundItem.convertStereoToMono
Availability
Flash MX 2004.
Usage
soundItem.convertStereoToMono
Description
Property; a Boolean value available only for MP3 and Raw compression types. Setting this to
true converts a stereo sound to mono; false leaves it as stereo. For MP3 compression type, if
soundItem.bitRate is less than 20 Kbps, this property is ignored and forced to true (see
soundItem.bitRate).
NOTE
If you want to specify a value for this property, set soundItem.useImportedMP3Quality
to
false.
NOTE
If you want to specify a value for this property, set soundItem.useImportedMP3Quality
to
false.