Example
The following example displays (in human-readable form) the date a file was last modified in
the Output panel:
// Make sure the specified file exists.
var file1Date = FLfile.getModificationDateObj("file:///c|/temp/file1.txt");
trace(file1Date);
See also
,
FLfile.getCreationDateObj()
FLfile.getModificationDate()
FLfile.getSize()
Availability
Flash MX 2004 7.2.
Usage
FLfile.getSize( fileURI )
Parameters
A string, expressed as a file:/// URI, specifying the file whose size you want to
fileURI
retrieve.
Returns
An integer that represents the size of the specified file, in bytes, or 0 if the file doesn't exist.
Description
Method; returns an integer that represents the size of the specified file, in bytes, or 0 if the file
doesn't exist. If the return value is 0, you can use
to determine whether the
FLfile.exists()
file is a zero-byte file or if the file doesn't exist.
Example
The following example stores the size of the mydata.txt file in the
variable:
fileSize
var URL = "file:///c|/temp/mydata.txt";
var fileSize = FLfile.getSize(URL);
264
Objects
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?