mFile.createFolder()

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.createFolder(folderName:String) : Boolean

Parameters

folderName - Name (including the full path) of the folder to be created. 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; Creates the specified folder and all parent folders.

Example

The following example creates a new sub folder in the working directory.

var success:Boolean;
var workingDirPath:String;

workingDirPath = mSystem.getSpecialFolder("WORKING") + mSystem.getPathDelimiter();
success = mFile.createFolder(workingDirPath+"subFolder");

Code Examples

Creating an Installer, mProjector Class Basics -- mFile