I then received these errors in the flash "compiler errors" pannel. I did not change any code- i only upgraded by replacing the 2 folders-
Line 29 1067: Implicit coercion of a value of type Function to an unrelated type String.
Line 29:
- Code: Select all
status2.text="Attempting to connect: 0% complete";
function initiateConnection(){
PlayerIO.connect(stage, Jetpack.gameId, "public", username.text, "", handleConnect, handleError);//THIS IS LINE 29 HERE
}
initiateConnection();
And
Line 97 1067: Implicit coercion of a value of type Function to an unrelated type String.
Line 97:
- Code: Select all
PlayerIO.quickConnect.simpleRegister(
stage,
Jetpack.gameId,
username.text,
password.text,
email.text,
null, // captcha key, if captcha is used
null, // captcha value, if captcha is used
{score:0}, // any additional data you want
function(client:Client):void{//THIS IS LINE 97 HERE
gotoAndStop(1);
status.text="You have registered successfully!";
},
function(e:PlayerIOError):void{
trace("Error: ", e)
}
);
This is the code to connect to my game... i haven't modified it from the examples. What's wrong?