User class error

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

Moderators: Lapo, Bax

taddle
Posts: 11
Joined: 25 Mar 2012, 18:14

User class error

Postby taddle » 28 Sep 2012, 12:36

Hi,
I have imported the flash API to CS5 as instructed by the documentation, but I am getting this error when ever I try and compile some code, whether it be a real simple code based on the gotoAndPlay() website tutorials or the examples:

Code: Select all

C:\Program Files (x86)\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\User.as, Line 14   The class being compiled, 'User', does not match the class that was imported, 'it.gotoandplay.smartfoxserver.User'.


Is this an error with the API I have downloaded (I have had problems with corrupted downloads recently) or something else?

Thanks
-Taddle
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: User class error

Postby rjgtav » 28 Sep 2012, 13:16

Hi,
What code are you using?
And are you sure you're only importing the API one single time?
Can you try uploading the fla so that I can test?

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.
taddle
Posts: 11
Joined: 25 Mar 2012, 18:14

Re: User class error

Postby taddle » 29 Sep 2012, 10:18

Fixed it.
I was looking through the user.as script, looked as if a cowboy builder did it, none of the functions were closed, started but not finished. Corrected the code manually, back up now :D

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 31 guests