STF.fileExists()

Availability

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

Usage

STF.fileExists() : Boolean

Parameters

None.

Returns

A boolean.; ; 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; Checks for the existance of the specified file.

Example

The following example detemines whether a file named temp.jpg exists in the working directory.

onFileExistsReturn = function(returnValue:Boolean) { // callback function
	success = returnValue;
}
STF.registerCallBack("fileExists", onFileExistsReturn, this); // register callback function
STF.fileExists("temp.jpg");

See Also

STF.getWorkingDirectory()