Issue with Code

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ParkerJ
Posts: 30
Joined: 31 Aug 2009, 23:14

Issue with Code

Post 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"
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Issue with Code

Post 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
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
ParkerJ
Posts: 30
Joined: 31 Aug 2009, 23:14

Re: Issue with Code

Post 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.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Issue with Code

Post 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
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Post Reply