Forum ‹ ActionScript 3.0 ‹ How to refresh the lobby room and addMessageHandler question
2 posts
• Page 1 of 1
How to refresh the lobby room and addMessageHandler question
1-) If I enter one player and don´t create a room, and enter a second player and after that I create a room, the first player doesn´t see that room. I only see rooms that are created before I enter the lobby (in the example given).
How can I make the players see rooms created after I enter the room?
2-) Can I add a connection.addMessageHandler in the handleConnect function?
I want to add this when the player joins the server, not when the player joins a room.
Thanks!
How can I make the players see rooms created after I enter the room?
2-) Can I add a connection.addMessageHandler in the handleConnect function?
I want to add this when the player joins the server, not when the player joins a room.
Thanks!
- Turrican
- Posts: 16
- Joined: August 11th, 2011, 11:50 pm
Re: How to refresh the lobby room and addMessageHandler ques
You don't join a server. You can list rooms on all servers and join rooms on any server.
So to answer your first question: You need to refresh the room list, i.e. call http://playerio.com/documentation/refer ... #listRooms again.
And to answer your second question: No, because you can only send messages to players that are in a room. Before you join a room you have no connection to any multiplayer server whatsoever. You can read a bit more about that here: http://playerio.com/documentation/multi ... essentials
So to answer your first question: You need to refresh the room list, i.e. call http://playerio.com/documentation/refer ... #listRooms again.
And to answer your second question: No, because you can only send messages to players that are in a room. Before you join a room you have no connection to any multiplayer server whatsoever. You can read a bit more about that here: http://playerio.com/documentation/multi ... essentials
-

Henrik - .IO
- Posts: 570
- Joined: January 4th, 2010, 1:53 pm
2 posts
• Page 1 of 1