I'm using ES5 with AS3 for my game and I want to assign user names based on the number of users currently connected (e.g. user0, user1, user2). I assumed that using userManager.users.length would return the current number of users connected therefore creating a unique username for each user. For some reason it always returns 0.
I'm using the code inside the onConnectionResponse function so a connection to the server should have been established and the user list should have been retrieved surely?