onCreateRoomError()

Availability:

Flash Player 6.0
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onCreateRoomError(errorMsg)

Description:

The event is fired when an error occurs while trying to create a new room with the createRoom() method.
Usually this happens when a client tries to create a room but its name is already taken.

Parameters:

errorMsg   The error message from the server

Returns:

nothing

Example:

smartFox.onCreateRoomError = function(errorMsg)
{
	trace("Could not create room. Server said: " + errorMsg)
}

See also: