beautypg.com

Videoitem.filelastmodifieddate, Videoitem.sourcefileexists – Adobe Extending Flash Professional CS5 User Manual

Page 539

background image

517

EXTENDING FLASH PROFESSIONAL

VideoItem object

Last updated 5/2/2011

Returns
A Boolean value of

true

if the file is exported successfully;

false

otherwise.

Description
Method; exports the specified item to an FLV file.

Example
Assuming that the first item in the Library is a video item, the following code exports it as an FLV file:

var videoFileURL = "file:///C|/out.flv";
var libItem = fl.getDocumentDOM().library.items[0];
libItem.exportToFLV(videoFileURL);

videoItem.fileLastModifiedDate

Availability
Flash CS4 Professional.

Usage

videoItem.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 video 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

videoItem.sourceFileExists

,

videoItem.sourceFileIsCurrent

,

videoItem.sourceFilePath

,

FLfile.getModificationDate()

videoItem.sourceFileExists

Availability
Flash CS4 Professional.

Usage

videoItem.sourceFileExists

This manual is related to the following products: