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!
PROBLEM with RoomList
-
slayerzphb
- Posts: 9
- Joined: 15 Jan 2010, 21:02
-
slayerzphb
- Posts: 9
- Joined: 15 Jan 2010, 21:02