beautypg.com

Sounditem.originalcompressiontype, Sounditem.quality – Adobe Extending Flash Professional CS5 User Manual

Page 414

background image

392

EXTENDING FLASH PROFESSIONAL

SoundItem object

Last updated 5/2/2011

Usage

soundItem.fileLastModifiedDate

Description
Read-only property: 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. If the file no longer exists, this value is "00000000".

Example
Assuming that the first item in the Library is a sound item, the following code displays a hexadecimal number as
described above.

var libItem = fl.getDocumentDOM().library.items[0];
fl.trace("Mod date when imported = " + libItem.fileLastModifiedDate);

See also

soundItem.sourceFileExists

,

soundItem.sourceFileIsCurrent

,

soundItem.sourceFilePath

,

FLfile.getModificationDate()

soundItem.originalCompressionType

Availability
Flash CS4 Professional.

Usage

soundItem.originalCompressionType

Description
Read-only property: a string that specifies whether the specified item was imported as an mp3 file. Possible values for
this property are “RAW” and “MP3”.

Example
Assuming that the first item in the Library is a sound item, the following code displays "MP3" if the file was imported
into the Library as an MP3 file, or "RAW" if it was not:

var libItem = fl.getDocumentDOM().library.items[0];
fl.trace("Imported compression type = "+ libItem.originalCompressionType);

See also

soundItem.compressionType

soundItem.quality

Availability
Flash MX 2004.

This manual is related to the following products: