[help] Create dynamic room
Posted: 14 Mar 2012, 21:31
Hi,
I have some problems creating dynamic room.
there are also function onRoomAdded and onRoomCreationError in my code, but when I tried to create the room, none of the events are sent back. Nothing seems wrong in my code. What could be my problem?
Also, I have a question. If I create a room from Zone Configurator, it will always be inside a zone. But, if create a room using code (dynamically), I don't have to set what zone it belongs to. So, I wonder what zone it belongs to if I create it dynamically? And can I monitor the room I created dynamically in the Zone Monitor?
Please reply
Regards,
I have some problems creating dynamic room.
Code: Select all
var settings:RoomSettings = new RoomSettings("Room");
settings.maxUsers = 6;
sfs.addEventListener(SFSEvent.ROOM_ADD, onRoomAdded);
sfs.addEventListener(SFSEvent.ROOM_CREATION_ERROR, onRoomCreationError);
sfs.send(new CreateRoomRequest(settings));
Also, I have a question. If I create a room from Zone Configurator, it will always be inside a zone. But, if create a room using code (dynamically), I don't have to set what zone it belongs to. So, I wonder what zone it belongs to if I create it dynamically? And can I monitor the room I created dynamically in the Zone Monitor?
Please reply
Regards,