STF.getUserName()

Availability

Flash MX 2004 or 8 swf w/ ScreenTimeScreenSaver component + ScreenTime 3.0 / 3.0

Usage

STF.getUserName() : String

Parameters

None.

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; Returns the name of the current user. Create and register a callback function to receive the return value.

Example

The following example returns the current user name.

//define the callback
function onGetUserNameReturn(returnValue:Boolean) {
	userName = returnValue;
}

//register callback
STF.registerCallBack("getUserName", onGetUserNameReturn, this);

STF.getUserName();

See Also

STF.getUserGUID()