Hello, I seem to have run into slight confusion. When I login a user using simpleuser connect. The connectID remains unchanged unless I did.
[flash=]public function sendLogin(u:String,p:String) {
PlayerIO.quickConnect.simpleConnect(
stage,
"mygameid",
u,
p,
function(c:Client):void{
username = u; //The one I use for the game.
client = c //This is where I want you to look
chatConnection.send("logged",username);
client.bigDB.loadMyPlayerObject(function(userLogged:DatabaseObject):void{
trace(userLogged.username);
})
},
function(e:PlayerIOError):void{
//
});
}[/flash]
Is this the right way to do things? I don't connect users like the tictactoe example which is before they enter the game. You always enter as a guest with the connectID as "GuestUser" and there is a login button that you can use whenever you want.
The connectID being a read-only value can never be changed until I specified that the client that was used for login should be equal to my main client.
Now after I do that, and enter a game, I can't debug in the development server anymore. Am I doing something wrong? Let me know if you need any more info.