getRoom()
Availability:
Flash Player 7, 8
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.getRoom(roomId):Room
Description:
Get the room Object from a roomId
Parameters:
roomId | the parameter is accepted as a Number or String. You can pass the numeric id of the room as Number or the name of the room as a String. |
Returns:
The room object. (For more info about this object check the onRoomListUpdate event)
Example:
var roomObj:Room = smartFox.getRoom(15) trace("Room name: " + roomObj.getName() + ", max users: " + roomObj.getMaxUsers())
See also:
getRoomList()