mSystem.getEnvironmentVariable()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Not Applicable

Usage

mSystem.getEnvironmentVariable(variableName:String) : String

Parameters

variableName - Name of the environment variable to retrieve - one of the following values.

Returns

A string.; ;

Description

Method; Retrieves the specified environment variable. Many of these variables are paths to file doirectories on machine that can be accessed using mSystem.getSpecialFolder().

Example

The following example retrieves the the Windows directory -- WINDIR environment variable.

var WindowsFolder = mSystem.getEnvironmentVariable("WINDIR");

See Also

mSystem.getSpecialFolder()