onRoomListUpdate()
Availability:
Flash Player 6.0
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.onRoomListUpdate(roomList)
Description:
The event is fired when entering a zone (usually during a login() call). The server sends a list of rooms in the zone.
Parameters:
roomList | A list of room objects |
Check the Room Class for more info on the objects returned.
Returns:
nothing
Example:
smartFox.onRoomListUpdate = function(roomList) { // Dump the names of the rooms available for (var r in roomList) { trace(roomList[r].getName()) } }
See also: