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?
Error 1061 help
-
- Posts: 30
- Joined: 25 Aug 2016, 02:52
Re: Error 1061 help
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?
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?
-
- Posts: 30
- Joined: 25 Aug 2016, 02:52
Re: Error 1061 help
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?
Re: Error 1061 help
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?
Check section 4.1 of the SFS Pro documentation: http://www.smartfoxserver.com/docs/1x/
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 30
- Joined: 25 Aug 2016, 02:52
Re: Error 1061 help
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?
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?
Re: Error 1061 help
I don't think it makes a lot of difference. Anyway yes, it should work too.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 73 guests