|
|
FLfile.getCreationDate()
AvailabilityFlash
MX 2004 7.2.
UsageFLfile.getCreationDate(fileOrFolderURI)
Parameters- fileOrFolderURI
- A string, expressed as a file:/// URI, specifying the file
or folder whose creation date and time you want to retrieve as a
hexadecimal string.
ReturnsA 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 "00000000" if the file
or folder doesn’t exist.
DescriptionMethod;
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.
ExampleThe
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.");
}
|