Parameters
A string, expressed as a file:/// URI, that specifies the file you want to copy.
fileURI
A string, expressed as a file:/// URI, that specifies the location and name of the
copyURI
copied file.
Returns
A Boolean value of
true
Description
Method; copies a file from one location to another. This method returns
already exists.
Example
The following example makes a backup copy of a configuration file named config.ini and
places it inside the same folder in which it is located, with a new name.
var originalFileURI="file:///C|/Program Files/MyApp/config.ini";
var newFileURI="file:///C|/Program Files/MyApp/config_backup.ini";
Flfile.copy(originalFileURI, newFileURI);
If you prefer, you can perform the same task with a single command:
Flfile.copy("file:///C|:/Program Files/MyApp/config.ini",
file:///C|/Program Files/MyApp/config_backup.ini");
FLfile.createFolder()
Availability
Flash MX 2004 7.2.
Usage
FLfile.createFolder( folderURI )
Parameters
A folder URI that specifies the folder structure you want to create.
folderURI
Returns
A Boolean value of
true
if successful;
otherwise.
false
if successful;
if
false
already exists.
folderURI
if
false
copyURI
FLfile object
257
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?