mFile.copyFile()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 2.0; replacing mProjector 1.0 async

Usage

mFile.copyFile(sourceFile:String, destinationFile:String) : Boolean

Parameters

sourceFile - Name (including the full path) of the file to copy.

destinationFile - Name (including the full path) of the destination file.

Returns

A boolean.; ;

Description

Method; Makes a copy of the specified file.

Example

The following example copies a file from the working directory to the desktop.

var success:Boolean;
var workingDirPath:String;
var desktopPath:String;

workingDirPath = mSystem.getSpecialFolder("WORKING") + mSystem.getPathDelimiter();
desktopPath = mSystem.getSpecialFolder("DESKTOP") + mSystem.getPathDelimiter();
success = mFile.copyFile(workingDirPath+"File.txt",desktopPath+"File.txt");

Code Examples

Creating an Installer, mProjector Class Basics -- mFile