STF.getSpecialFolder()

Availability

Flash Player 6 + ScreenTime 3.0 / 3.0.

Usage

STF.getSpecialFolder(folderName:String) : String

Parameters

folderName - Name of the folder path to retrieve - one of the following values.

Returns

A string.; 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; Retrieves the path of a special folder.

Example

The following example returns the path to the user's Documents (Mac) or "My Documents" (Windows) folder.

var folder :String;
onGetSpecialFolderReturn = function(returnValue:String) {  // define callback
	folder = returnValue;
}
STF.registerCallBack("getSpecialFolder", onGetSpecialFolderReturn, this);   // register callback function
STF.getSpecialFolder("Documents");