|
|
FLfile.getCreationDateObj()
AvailabilityFlash
MX 2004 7.2.
UsageFLfile.getCreationDateObj(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
JavaScript Date object.
ReturnsA 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.
DescriptionMethod;
returns a JavaScript Date object that represents the date and time
when the specified file or folder was created.
ExampleThe
following example displays (in human-readable form) the date a file
was created, in the Output panel:
// Make sure the specified file exists.
var file1Date = FLfile.getCreationDateObj("file:///c|/temp/file1.txt");
fl.trace(file1Date);
|