Bitmapitem.filelastmodifieddate, Bitmapitem.originalcompressiontype – Adobe Extending Flash Professional CS5 User Manual
Page 59
37
EXTENDING FLASH PROFESSIONAL
BitmapItem object
Last updated 5/2/2011
Parameters
fileURI
A string, expressed as a file:/// URI, that specifies the path and name of the exported file.
Returns
A Boolean value of
true
if the file was exported successfully;
false
otherwise.
Description
Method; exports the specified item to a PNG or JPG file.
Example
Assuming the first item in the Library is a bitmap item, the following code exports it as a JPG file:
var imageFileURL = "file:///C|/exportTest/out.jpg";
var libItem = fl.getDocumentDOM().library.items[0];
libItem.exportToFile(imageFileURL);
bitmapItem.fileLastModifiedDate
Availability
Flash CS4 Professional.
Usage
bitmapItem.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 at the time the file was imported to the
library. If the file no longer exists, this value is "00000000".
Example
Assuming the first item in the Library is a bitmap item, the following code displays a hex number as described above.
var libItem = fl.getDocumentDOM().library.items[0];
fl.trace("Mod date when imported = " + libItem.fileLastModifiedDate);
See also
bitmapItem.sourceFileIsCurrent
,
bitmapItem.originalCompressionType
Availability
Flash CS4 Professional.
Usage
bitmapItem.originalCompressionType