SFSEvent.onRoomListUpdate - getting updated RoomVars

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

Moderators: Lapo, Bax

Post Reply
jviebrock
Posts: 1
Joined: 05 Jul 2011, 06:36
Location: Hamburg

SFSEvent.onRoomListUpdate - getting updated RoomVars

Post by jviebrock »

Hello,

we have a multiplayer-flash game running, made in as3. we got the lobby, and users can start new games with several other users. a new game creates a new room. when all/enough players are in this room, the owner starts it.

my problem now is, that when a game is started, the room vars change. for example "started=1" and the match begins.

in my lobby view I list all new games with free "slots" for players. I'm trying to filter the started ones out, but the roomvariables don't update in the lobby.

I've tried to fetch the rooms via "getRoomList()" and "getAllRooms()" - nothing worked.


can someone help me?

thanks.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This has already been discussed and it is mentioned in the documentation too: Room Variables are not visible outside the Room to which they belong, unless they are defined as "global".
Paolo Bax
The SmartFoxServer Team
Post Reply