Extension on zone and room

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

Moderators: Lapo, Bax

Post Reply
bhavesh
Posts: 6
Joined: 24 Apr 2013, 14:32

Extension on zone and room

Post by bhavesh »

Hello

I need an extension in room as well as the zone. But when I send a client request, it only checks the zone extension and not the room extension.
And in case of any event the room extension handler is called.
Is there any way we can specify both the extensions and configure the handlers accordingly.

Thanks in advance.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extension on zone and room

Post by Lapo »

In the client request you will also need to specify the id of the Room where the Extension is attached to.
As regards the events firing on both sides, it depends on the event but it's perfectly normal.

An event of a new room being created will only be notified to a Zone Extension (because Zones control Rooms). An event of a User entering a Room will be notified to both the Zone and Room Extension. It's up to the developer to decide on which side this event should be handled.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply