mFile.listFolders()

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.1 async

Usage

mFile.listFolders(folderName:String) : Array

Parameters

folderName - Name (including the path) of the folder for which the immediate sub-folders should be returned.

Returns

An array.; ;

Description

Method; Lists all sub-folders contained inside the specified folder.

Example

The following example lists all sub-folders in the "Program Files" folder on Windows and "Applications" fodler on the Mac.

var folderName = mSystem.getSpecialFolder("PROGRAM_FILES");
var folders:Array = mFile.listFolders(folderName);
for (var i=0; i<folders.length; i++)
{
    mApplication.trace(folders[i]);
}

Code Examples

mProjector Class Basics -- mFile