I understand that it has to be created through client.multiplayer.listRooms but I don't know how.
I tried the following code which throws an error: //TypeError: Error #1010: A term is undefined and has no properties.
- Code: Select all
client.multiplayer.listRooms("MyGame", null, 1, 0, function(rooms:Array){trace("Online Users:"+rooms[0].onlineUsers)}, null);