Page 1 of 1

Issue with Code

Posted: 14 May 2013, 21:38
by ParkerJ
PLEASE HELP!

I am getting the following error and need help asap;
I have re-installed flash and the API.

Code: Select all

C:\Users\Joshua\Documents\Projects\***\***\Actionscript 3.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as, Line 2049	

1061: Call to a possibly undefined method encode through a reference with static type Class.
C:\Users\Joshua\Documents\Projects\***\***\Actionscript 3.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as, Line 2680	1061: Call to a possibly undefined method decode through a reference with static type Class.


"updating the code please wait"

Re: Issue with Code

Posted: 14 May 2013, 23:05
by rjgtav
Hello,

What do you mean by updated the flash? You updated the Flash player or Adobe's Flash Professional?
And what was the previous version and the current one?

Thanks

Re: Issue with Code

Posted: 14 May 2013, 23:11
by ParkerJ
I have re-installed flash and the API. As a DEBUG.

Because the code has an issue with JSON. Which is built in right?

But I can't understand it really need help.

Re: Issue with Code

Posted: 14 May 2013, 23:20
by rjgtav
Oh, I see. Yes SFS Pro's API used a JSON class from a 3rd party, and then on FP11 Adobe finally decided it was a good option to include a JSON parser natively on the player.
As a result, those classes start conflicting as SFS API expects a JSON class with slight different methods and method names.
This issue has already been discussed when FP11 was initially released, you can find some solutions on this topic:
http://forums.smartfoxserver.com/viewto ... ode#p59131

Cheers