mFile.deleteFile()

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.deleteFile(fileName:String) : Boolean

Parameters

fileName - Name (including the path) of the file to delete. Platform Implementation Differences: On Windows the file name must include a fully qualified path. On the Mac if no path is specified, the working directory is used.

Returns

A boolean.; ;

Description

Method; Deletes the specified file.

Example

The following example deletes a file from the working directory.

var success:Boolean;
var workingDirPath:String;
var pathDelimiter:String = mSystem.getPathDelimiter();

workingDirPath = mSystem.getSpecialFolder("WORKING");
var success = mFile.deleteFile(workingDirPath +pathDelimiter + "File.txt");

See Also

mFile.createFile()

Code Examples

mProjector Class Basics -- mFile