onBuddyRoom()

Availability:

Flash Player 6.0
SmartFoxServer Basic / Pro

Usage:

smartFox.onBuddyRoom(idList)

Description:

The event is fired in response to a getBuddyRoom() request. The server responds sending the room id(s) where the user is currently present.

Parameters:

idList   An array containing the id(s) of the rooms in which the user is currently logged in. If you don't allow users to be present in more than one room at the same time you will receive only one Room-ID.

Returns:

nothing

Example:

smartFox.onBuddyListRoom = function(idList)
{
	// Join the buddy in his room
	smartFox.join(idList[0])
}

See also:

onBuddyList(), onBuddyListUpdate(), onBuddyListError()