Flfile.copy() – Adobe Extending Flash Professional CS4 User Manual
Page 282
260
EXTENDING FLASH CS4 PROFESSIONAL
FLfile object
FLfile.copy()
Availability
Flash MX 2004 7.2.
Usage
FLfile.copy(fileURI, copyURI)
Parameters
fileURI
A string, expressed as a file:/// URI, that specifies the file you want to copy.
copyURI
A string, expressed as a file:/// URI, that specifies the location and name of the copied file.
Returns
A Boolean value of
true
if successful;
false
otherwise.
Description
Method; copies a file from one location to another. This method returns
false
if copyURI already exists.
Method
Description
Copies a file.
Creates one or more folders.
Determines the existence of a file or folder.
Finds out whether a file is writable, read-only, hidden, visible, or
a system folder.
Specifies how many seconds have passed between January 1,
1970 and the time the file or folder was created.
Gets the date a file or folder was created.
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.
Gets the size of a file.
Lists the contents of a folder.
Converts a filename in a platform-specific format to a file:///
URI.
Reads the contents of a file.
Deletes a file or folder.
Makes a file or folder read-only, writable, hidden, or visible.
Converts a filename expressed as a file:/// URI to a platform-
specific format.
Creates, writes to, or appends to a file.