onConnection()

Availability:

Flash Player 7, 8
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onConnection(status:Boolean)

Description:

Handles the server response of a connection attempt using the connect() method.

Parameters:

status   a boolean parameter. True if connection was successfull

Returns:

nothing

Example:

smartFox.onConnection = function(status:Boolean)
{
	if (status)
		trace("Ok! Connected.")
	else
		trace("Ouch! Could not connect")
}

See also:

onConnectionLost()