Dynamic Room Creation Query

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

Moderators: Lapo, Bax

Post Reply
yaswanth
Posts: 32
Joined: 27 Sep 2008, 21:02

Dynamic Room Creation Query

Post by yaswanth »

Hi,

If we create a dynamic room (from the client) using an xtName, xtScript. Would an internal event be fired on the server side for room creation? Can this even be caught in xtScript and can the properties of that room be changed from within the xtScript?

Pointers to any documentation would be helpful. Thank you.

Regards,
Yaswanth
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
this is what happens:

1- the Room is created
2- the extension is created and attached to the Room
3- an update is sent to the client
4- an event is fired on the server side at Zone Level

You have 2 options:
1- pass some room variables from client side that will be set when the room is created. This is ok if you want these values to be publicly available for all clients

2- if you want to set server-side-only properties, via Room.properties,
you can detect the Zone event (NEW_ROOM) and set the properties there.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply