Hello.
I've downloaded and installed SmartFoxServer PRO recently and was trying to explore.. All is good.. I connect.. login.. after that when I receive SFSEvent.onRoomListUpdate event and try to roundtrip evt.params.roomList (let's assume evt is the SFSEvent received by handler), there is an nothing there.. There is rooms but they don't seem to have any variables..
Btw my config file is as is default one.. I mean the room I've tried is TheoChat and the rooms got variables there by the config!
You can only read variables in the room that you have joined.
You don't get the full list of variables for every room available, it usually takes too much bandwidth.
You can however force this behavior (receive all vars for all rooms) by setting the roomListVars attribute in the Zone config.
All the details are found in the docs, chapter 2.1
function onRoomListUpdate(evt:SFSEvent):void
{
for each (var room:Room in evt.params.roomList)
{
trace("room: " + room.getName())
var vars:Array = room.getVariables()
for (var k:String in vars)
{
trace("\t" + k + " => " + vars[k])
}
}
}