Forum QuickConnect Weird error I got

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Weird error I got

Postby QiX » September 9th, 2010, 1:06 pm

Hey,

Just wondering if anyone has encountered this error before.
I've tried googling it but I couldn't find a straight answer.

After i'm connected to the PlayerIO servers using SimpleConnect, i'm calling the CreateJoinRoom function and I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert bridge::Connection@1e8b5859 to playerio.Client.
at <anonymous>()


Any Ideas?

Thanks,
QiX
QiX
QiX
 
Posts: 34
Joined: July 22nd, 2010, 4:41 pm

Re: Weird error I got

Postby Benjaminsen » September 9th, 2010, 4:18 pm

CreateJoinRoom returns a connection not a client. Ie you need to change the return value of your connect callback method to take an argument of the type Connection
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Weird error I got

Postby QiX » September 9th, 2010, 4:36 pm

I don't think thats the problem.

Thats the method being called as CreateJoinRoom callback method:

Code: Select all
private function handleJoin(connection:Connection):void



could it be another method?

Thanks,
QiX
QiX
QiX
 
Posts: 34
Joined: July 22nd, 2010, 4:41 pm

Re: Weird error I got

Postby Benjaminsen » September 9th, 2010, 4:40 pm

<anonymous>() Indecates that you have an anonymous function as the callback handler, are you sure that you are calling handleJoin?

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Weird error I got

Postby QiX » September 9th, 2010, 5:02 pm

Yep, Thats it.

for some reason now I can't even run it due to another error.
i'll try solving the 2nd problem and see if it sorts everything out.

Thanks again,
QiX
QiX
QiX
 
Posts: 34
Joined: July 22nd, 2010, 4:41 pm


Return to QuickConnect