STF.getUserGUID()

Availability

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

Usage

STF.getUserGUID() : 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; Retrieves the unique user id. This unique user id is a globally unique identifier (GUID), useful for user identification when building online applications.

Example

The following sample retrieves current user's unique id.

var userGUID:String;

//define the callback
function onGetUserGUIDReturn(returnValue:Boolean) {
	userGUID = returnValue;
}

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

See Also

STF.getUserName()