Create or update Dynamic room list in as3

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
faizi
Posts: 1
Joined: 24 Mar 2011, 23:24

Create or update Dynamic room list in as3

Post 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
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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?
Smartfox's forum is my daily newspaper.
Post Reply