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
converts a stereo sound to mono;
true
soundItem.bitRate
Example
The following example converts an item in the library to mono, only if the item has MP3 or Raw
compression type:
fl.getDocumentDOM().library.items[0].convertStereoToMono = true;
soundItem.quality
Availability
Flash MX 2004.
Usage
soundItem.quality
Description
Property; a string that specifies the playback quality of a sound in the library. This property is
available only for MP3 compression type. Acceptable values are
Example
The following example sets the playback quality of an item in the library to Best, if the item has
MP3 compression type:
fl.getDocumentDOM().library.items[0].quality = "Best";
soundItem.sampleRate
Availability
Flash MX 2004.
Usage
soundItem.sampleRate
272
Chapter 3: Objects
false
is less than 20 Kbps, this property is ignored and forced to
leaves it as stereo. For MP3 compression type, if
"Fast"
.
true
,
,
.
"Medium"
"Best"
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?