MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 263

Extending flash
Table of Contents

Advertisement

Example
The following example compares the modification dates of two files and determines which of
the two was modified most recently:
// Make sure the specified files exist.
file1 = "file:///C|/MyApplication/MyApp.fla"
file2 = "file:///C|/MyApplication/MyApp.as"
modificationTime1 = FLfile.getModificationDate(file1)
modificationTime2 = FLfile.getModificationDate(file2)
if(modificationTime1 > modificationTime2) {
alert("File 2 is older than File 1")
}
else if(modificationTime1 < modificationTime2) {
alert("File 1 is older than File 2")
}
else {
alert("File 1 and File 2 were saved at the same time")
}
See also
FLfile.getCreationDate()
FLfile.getModificationDateObj()
Availability
Flash MX 2004 7.2.
Usage
FLfile.getModificationDateObj(fileOrFolderURI)
Parameters
fileOrFolderURI
modification 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
last modified. If the file or folder doesn't exist, the object contains information indicating that
the file or folder was created at midnight GMT on December 31, 1969.
Description
Method; returns a JavaScript Date object that represents the date and time when the specified
file or folder was last modified.
,
FLfile.getModificationDateObj()
A string, expressed as a file:/// URI, specifying the file or folder whose
FLfile object
263

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents