User Guide

256 Objects
Method summary for the FLfile object
The following methods can be used with the FLfile object.
FLfile.copy()
Availability
Flash MX 2004 7.2.
Usage
FLfile.copy( fileURI, copyURI )
Method Description
FLfile.copy() Copies a file.
FLfile.createFolder() Creates one or more folders.
FLfile.exists() Determines the existence of a file or folder.
FLfile.getAttributes() Finds out if a file is writable, read-only, hidden, visible,
or a system folder.
FLfile.getCreationDate() Specifies how many seconds have passed between
January 1, 1970, and the time the file or folder was
created.
FLfile.getCreationDateObj() Gets the date a file or folder was created.
FLfile.getModificationDate() Specifies how many seconds have passed between
January 1, 1970, and the time the file or folder was last
modified.
FLfile.getModificationDateObj() Gets the date a file or folder was last modified.
FLfile.getSize() Gets the size of a file.
FLfile.listFolder() Lists the contents of a folder.
FLfile.read() Reads the contents of a file.
FLfile.remove() Deletes a file or folder.
FLfile.setAttributes() Makes a file or folder read-only, writable, hidden or
visible.
FLfile.write() Creates, writes to, or appends to a file.