When creating a new game, I use these settings :
Code: Select all
var settings:SFSGameSettings = new SFSGameSettings("foobar"+foo);
settings.maxUsers = 4;
settings.maxSpectators = 8;
settings.isPublic = true;
settings.minPlayersToStartGame = 2;
settings.leaveLastJoinedRoom = true;
settings.notifyGameStarted = true;
and I am able to do this to the room object :
Code: Select all
var maxUsers:Number = this.room.maxUsers;
and it works fine. However, this doens't even compile :
Code: Select all
var minPlayers:Number = this.room.minPlayersToStartGame;
it doesn't know that the "minPlayersToStartGame" variable is.
Any ideas?