Page 1 of 1

SFSEvent.onRoomListUpdate - getting updated RoomVars

Posted: 05 Jul 2011, 06:59
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.

Posted: 05 Jul 2011, 09:47
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".