Retrieves the list of Rooms in group

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

Moderators: Lapo, Bax

hcdst
Posts: 12
Joined: 07 Sep 2015, 10:31

Retrieves the list of Rooms in group

Postby hcdst » 07 Sep 2015, 10:51

i want to Retrieves the list of Rooms in a specified group. all room with this group is created by getApi().createroom().
try with as3 sfs.getRoomListFromGroup() result is only the room joined.

Can i do it?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Retrieves the list of Rooms in group

Postby Lapo » 07 Sep 2015, 15:03

The getRoomListFromGroup() method searches all Rooms known to the client matching the provided groupId.
It should return what you expect.

Are you sure it isn't? If so, can you give us the details, including Server and API version?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
hcdst
Posts: 12
Joined: 07 Sep 2015, 10:31

Re: Retrieves the list of Rooms in group

Postby hcdst » 08 Sep 2015, 01:07

I mean : i have 10 room(created by extension) with same groupId is "game". So, how can i get all these room in client.
getRoomListFromGroup() only return rooms client joined not all.
I using the lastest version i,ve just down at homepage
Thks for help
hcdst
Posts: 12
Joined: 07 Sep 2015, 10:31

Re: Retrieves the list of Rooms in group

Postby hcdst » 08 Sep 2015, 03:43

thks Lapo, my issue is solved when i add "game" to default room group in admintool or subcribe "game" group before request room list. details you posted here http://www.smartfoxserver.com/forums/viewtopic.php?t=8090

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 17 guests