PROBLEM with RoomList

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
slayerzphb
Posts: 9
Joined: 15 Jan 2010, 21:02

PROBLEM with RoomList

Post by slayerzphb »

In my project, connect is ok...
later i use
getRoomList();
onRoomListUpdate = function (roomList)
and then join in a room right?
its ok...
onJoinRoom = function (roomObj)
gotoAndStop("chat");
"
but the problem is:
when is in "chat"
NOT LIST THE ROOMS!

i tried the code:
....onRoomListUpdate = function(roomList:Object)
{
trace("test for see");
roomList_lb.removeAll()

for (var i:String in roomList)
{
trace("test");
var room = roomList
roomList_lb.addItem(room.getName() + " (" + room.getUserCount() + ")", room.getId())
}
roomList_lb.sortItemsBy("label", "ASC")
}


i make this project based in many parts based in example of PIXEL GAME.
i don't know, i tried many things but in CHAT NOT LIST ROOM!
nothing happen!

the original code of project:
mylist = function (roomList:Object)
{
trace("testtttttttttttttttttttttttttttttttttttttttt");
for (var i:String in roomList)
{
trace("test okkkkkkkkkkk");
if (roomList != "")
{
......................................

in first, NOTHING HAPPENS!
in second( mylist = function (roomList:Object) )
return me trace("testtttttttttttttttttttttttttttttttttttttttt");
but...
seems that the ROOMLIST is empty, because not return the second trace
trace("test okkkkkkkkkkk"); ....

I don't know...
i tried many things... please anybody help me, i need the solution urgent!
slayerzphb
Posts: 9
Joined: 15 Jan 2010, 21:02

Post by slayerzphb »

i tried sendXtMessage(xtName, "jme", [], "str", -1) in "Chat" too...
before the mylist and roomlist but nothing happen...if use in this frame, nothing happen, nothing... i really don't know why not retrieve any roomlist...
connect ok... login... ok.... join in a room ok...
Post Reply