MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 261

Extending flash
Table of Contents

Advertisement

Returns
A string containing a hexadecimal number that represents the number of seconds that have
elapsed between January 1, 1970, and the time the file or folder was created, or
the file or folder doesn't exist.
Description
Method; specifies how many seconds have passed between January 1, 1970, and the time the
file or folder was created. This method is used primarily to compare the creation or
modification dates of files or folders.
Example
The following example determines whether a file has been modified since it was created.
// Make sure the specified file exists.
var fileURI = "file:///C|/MyApplication/MyApp.fla";
var creationTime = FLfile.getCreationDate(fileURI)
var modificationTime = FLfile.getModificationDate(fileURI)
if ( modificationTime > creationTime ) {
alert("The file has been modified since it was created")
}
else {
alert("The file has not been modified since it was created")
}
See also
FLfile.getCreationDateObj()
FLfile.getCreationDateObj()
Availability
Flash MX 2004 7.2.
Usage
FLfile.getCreationDateObj(fileOrFolderURI)
Parameters
fileOrFolderURI
creation date and time you want to retrieve as a JavaScript Date object.
Returns
A JavaScript Date object that represents the date and time when the specified file or folder was
created. If the file doesn't exist, the object contains information indicating that the file or
folder was created at midnight GMT on December 31, 1969.
,
FLfile.getModificationDate()
A string, expressed as a file:/// URI, specifying the file or folder whose
if
"00000000"
FLfile object
261

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents