Page 1 of 1

Create or update Dynamic room list in as3

Posted: 24 Mar 2011, 23:40
by faizi
im trying to create a dynamic room using flash as3 code is:-

_SmartFoxClient.addEventListener(SFSEvent.onRoomAdded, onRoomAddedHandler);


var roomObj:Object = new Object();
roomObj.name = "The Entrance";
roomObj.maxUsers = 50;

_SmartFoxClient.createRoom(roomObj);


private function onRoomAddedHandler(evt:SFSEvent):void
{
trace("Room " + evt.params.room.getName() + " was created")
roomsListDynamic.addItem({label:evt.params.room.getName()});
}

but problem is that when i create room, room successfully added im ny data list but when i open another SWF file there is any not update my dynamic room :( plzz any one tell me what i do i want to create dynamic room

Posted: 27 Mar 2011, 22:31
by BigFIsh
but problem is that when i create room, room successfully added im ny data list but when i open another SWF file there is any not update my dynamic room Sad plzz any one tell me what i do i want to create dynamic room
I'm not sure what the problem is. Is your data list not being updated on your other SWF file? Or is it that the room doesn't exist in smart fox's room list?