SoundItem object

Inheritance 
Item object > SoundItem object

Availability

Flash MX 2004.

Description

The SoundItem object is a subclass of the Item object. It represents a library item used to create a sound. See also frame.soundLibraryItem and Item object.

Method summary

In addition to the Item object methods, the SoundItem object has following method:

Property

Description

soundItem.exportToFile()

Exports the specified item to a QuickTime file on the Macintosh, or to a WAV or QT file on Windows.

Property summary

In addition to the Item object properties, the following properties are available for the SoundItem object:

Property

Description

soundItem.bitRate

A string that specifies the bit rate of a sound in the library. Available only for the MP3 compression type.

soundItem.bits

A string that specifies the bits value for a sound in the library that has ADPCM compression.

soundItem.compressionType

A string that specifies the compression type for a sound in the library.

soundItem.convertStereoToMono

A Boolean value available only for MP3 and Raw compression types.

soundItem.fileLastModifiedDate

Read-only; a string containing a hexadecimal number that represents the number of seconds that have elapsed between January 1, 1970, and the modification date of the original file (on disk) at the time the file was imported to the library.

soundItem.originalCompressionType

Read-only; a string that specifies whether the specified item was imported as an MP3 file.

soundItem.quality

A string that specifies the playback quality of a sound in the library. Available only for the MP3 compression type.

soundItem.sampleRate

A string that specifies the sample rate for the audio clip.

soundItem.sourceFileExists

Read-only; a Boolean value that specifies whether the file that was imported to the Library still exists in the location from where it was imported.

soundItem.sourceFileIsCurrent

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.

soundItem.sourceFilePath

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.