STF.checkNetConnection()

Availability

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

Usage

STF.checkNetConnection() : 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 to see whether the user is connected to the Internet.

Example

The following example returns the status of the computers internet connection.

var isConnection:Boolean;
// callback function
onCheckNetConnectionReturn = function(returnValue:Boolean) { 
      isConnection= returnValue;
}

// register callback function
STF.registerCallBack("checkNetConnection", onCheckNetConnectionReturn, this); 
STF.checkNetConnection();