hide room at runtime

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

Moderators: Lapo, Bax

bryanadams

hide room at runtime

Postby bryanadams » 25 Mar 2012, 19:43

Hi,
i hide my room below code (java) , but flash clients can show room
what is wrong?
Zone zone = SmartFoxServer.getInstance().getZoneManager().getZoneByName("Myzone");
zone.getRoomByName("TestRoom").setHidden(true);
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: hide room at runtime

Postby Lapo » 26 Mar 2012, 10:10

This is not the way it works.
If you want to create an hidden Room you must specify the flag when you create it.
Please check the CreateRoomSettings class in the javadoc which collects all the parameters of a Room.

Once a Room is created with the hidden flag it cannot be changed dynamically at runtime.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 87 guests