Sounditem.useimportedmp3quality – Adobe Extending Flash Professional CS5 User Manual
Page 417
395
EXTENDING FLASH PROFESSIONAL
SoundItem object
Last updated 5/2/2011
Description
Read-only property: a string, expressed as a file:/// URI, that represents the path and name of the file that was imported
into the Library.
Example
The following example displays the name and source file path of any items in the library that are of type
"sound"
:
for (idx in fl.getDocumentDOM().library.items) {
if (fl.getDocumentDOM().library.items[idx].itemType == "sound") {
var myItem = fl.getDocumentDOM().library.items[idx];
fl.trace(myItem.name + " source is " + myItem.sourceFilePath);
}
}
See also
soundItem.useImportedMP3Quality
Availability
Flash MX 2004.
Usage
soundItem.useImportedMP3Quality
Description
Property; a Boolean value. If
true
, all other properties are ignored, and the imported MP3 quality is used.
Example
The following example sets an item in the library to use the imported MP3 quality:
fl.getDocumentDOM().library.items[0].useImportedMP3Quality = true;
See also