room Remove Mode - can this be set on the client?

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

jamesr
Posts: 104
Joined: 14 Oct 2010, 14:56

room Remove Mode - can this be set on the client?

Postby jamesr » 26 Oct 2010, 12:20

Hi,

is it possible to set the 'Remove Mode' of a Room, when it's dynamically created on the client?

Cheers,

James
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Oct 2010, 15:08

No, this is an advanced option available from config or server side.
Lapo
--
gotoAndPlay()
...addicted to flash games
jamesr
Posts: 104
Joined: 14 Oct 2010, 14:56

Postby jamesr » 26 Oct 2010, 15:57

Thanks Marco
User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Postby omnivibe » 18 Nov 2010, 07:39

So what does WHEN_EMPTY_AND_CREATOR_IS_GONE mode mean, if the creator is always the server?

More to the point- I want to have a room which closes once the "host" user leaves the room.

Thanks!
User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Postby omnivibe » 18 Nov 2010, 07:44

Whups- forgot to add- "how do I do this?" ;)
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Nov 2010, 08:03

If the Server is the creator the WHEN_EMPTY_AND_CREATOR_IS_GONE mode will result in a persistent Room, because of course the Server never "goes away" :D

More to the point- I want to have a room which closes once the "host" user leaves the room.

A Room can only be removed when is empty, otherwise we have a problem on how to decide what to do with the other people inside.

The WHEN_EMPTY mode will remove the Room as soon as everyone leaves it.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Nov 2010, 08:05

Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Postby omnivibe » 18 Nov 2010, 08:15

I guess I could solve this client side by setting up a listener for when the host leaves, and then initiating a LeaveRoomRequest when that happens...

Can you think of a cleaner solution?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Nov 2010, 09:02

Makes perfect sense.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 9 guests