STF.listFolders()

Availability

Flash AS2.0 SWF w/ ScreenTimeScreenSaver component + ScreenTime 3.0 / 3.0

Usage

STF.listFolders(folderName:String) : Array

Parameters

folderName

Returns

An array.; ; Lists all sub-folders contained inside the specified folder. This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.

Description

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

Example

The following example lists all sub-folders of a folder.

var Folders;
listFolders_btn.onRelease = function() {
	mFile.listFolders(desktopFolderPath);
}
//define the callback
function listOfFoldersCallback(returnValue:Array){
	Folders = returnValue;
	for (var i=0; Folders[i]; i++)
	{
    trace(Folders[i]);
	}
}
//register the callback
mFile.registerCallBack("listFolders", listOfFoldersCallback, this);

See Also

STF.listFiles()