Error 1061 help

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

Moderators: Lapo, Bax

ProgramBoy
Posts: 30
Joined: 25 Aug 2016, 02:52

Error 1061 help

Postby ProgramBoy » 25 Aug 2016, 02:57

Hello,

When I try running my 1.x code in Animate CC it starts opening the test movie and evidently crushes. with two 1061 errors:

Line 2055, Column 27 1061: Call to a possibly undefined method encode through a reference with static type Class.
Line 2701, Column 26 1061: Call to a possibly undefined method decode through a reference with static type Class.

Running on AS3 AIR 20.0 For Desktop

Any idea why this is happening and how can I fix this?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Error 1061 help

Postby Lapo » 25 Aug 2016, 06:34

Hi,
the errors don't mention any specific file or class related to SmartFoxServer. Is this the complete transcript of the error or there's more?

At this point it's not even clear if the error comes from the SFS Api, your code or something else...

Thanks

p.s. = I presume you have added the Flash AS3 API to your project's classpath?
Lapo
--
gotoAndPlay()
...addicted to flash games
ProgramBoy
Posts: 30
Joined: 25 Aug 2016, 02:52

Re: Error 1061 help

Postby ProgramBoy » 25 Aug 2016, 15:59

Lapo wrote:Hi,
the errors don't mention any specific file or class related to SmartFoxServer. Is this the complete transcript of the error or there's more?

At this point it's not even clear if the error comes from the SFS Api, your code or something else...

Thanks

p.s. = I presume you have added the Flash AS3 API to your project's classpath?


After looking at some stuff I think I did not add the Flash AS3 API to the project's classpath, can you link me a tutorial please? :P
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Error 1061 help

Postby Bax » 25 Aug 2016, 16:11

ProgramBoy wrote:After looking at some stuff I think I did not add the Flash AS3 API to the project's classpath, can you link me a tutorial please? :P

Check section 4.1 of the SFS Pro documentation: http://www.smartfoxserver.com/docs/1x/
Paolo Bax
The SmartFoxServer Team
ProgramBoy
Posts: 30
Joined: 25 Aug 2016, 02:52

Re: Error 1061 help

Postby ProgramBoy » 25 Aug 2016, 18:09

Bax wrote:
ProgramBoy wrote:After looking at some stuff I think I did not add the Flash AS3 API to the project's classpath, can you link me a tutorial please? :P

Check section 4.1 of the SFS Pro documentation: http://www.smartfoxserver.com/docs/1x/


Can't I just put them in the same folder as my .as file and import them to the code?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Error 1061 help

Postby Bax » 26 Aug 2016, 07:43

I don't think it makes a lot of difference. Anyway yes, it should work too.
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: Google [Bot] and 40 guests