Room Removal detection

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
mhdside
Posts: 236
Joined: 04 May 2008, 07:57
Location: Egypt
Contact:

Room Removal detection

Postby mhdside » 03 Jul 2012, 15:20

It may be easy but I`m not able to see it now. If I`m inside a room and that room is removed. How can I know in the client side that the room I`m in is removed and hence I`m out of the room (I`m joined in more than 1 room). I tried listening to SFSEvent.ROOM_REMOVE but unfortunately it didn`t fire.
Mahmoud Badri
Senior actionscript developer
http://www.el3ab.com
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Room Removal detection

Postby rjgtav » 03 Jul 2012, 17:34

Hi.
Well, in SFS2X you can no longer remove a room when there are still users inside it, you first need to join the users in other room or to leave that room you want to remove. Of course you have to use the sfsApi.remove() room method instead of the Zone.removeRoom()
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 110 guests