beautypg.com

Sounditem.useimportedmp3quality – Adobe Extending Flash Professional CS4 User Manual

Page 421

background image

399

EXTENDING FLASH CS4 PROFESSIONAL

SoundItem object

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.sourceFileExists

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

soundItem.compressionType