getRoom()

Availability:

Flash Player 6.0
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.getRoom(roomId)

Description:

Get the room Object from a roomId (For more info about this object check the onRoomListUpdate event)

Parameters:

roomId   a number representing one of the rooms in the roomList

Returns:

The room object.

Example:

var roomObj = smartFox.getRoom(15)
trace("Room name: " + roomObj.getName() + ", max users: " + roomObj.getMaxUsers())

See also:

getRoomList()