I get the user count from a grupid with below code.
Is there a way to get this count without a loop?
Code: Select all
cnt=0;
var roomList:Array = sfs.roomManager.getRoomListFromGroup(games_grup);
for each(var room:Room in roomList) {
cnt=cnt+room.userCount;
}
trace("Total user count : "+cnt);