'it.gotoandplay.smartfoxserver.SmartFoxClient' Error

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

Moderators: Lapo, Bax

Aiidenb
Posts: 263
Joined: 16 Aug 2010, 22:08
Location: England
Contact:

'it.gotoandplay.smartfoxserver.SmartFoxClient' Error

Postby Aiidenb » 08 Sep 2011, 22:05

Okay, so my game has been working since something happened randomly and now I'm receiving error messages like this in Flash;

Code: Select all

**Error** C:\Documents and Settings\...........................................\Examples\AS2\04_avatarChat\it\gotoandplay\smartfoxserver\http\LoaderFactory.as: Line 15: The name of this class, 'it.gotoandplay.smartfoxserver.http.LoaderFactory', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.LoaderFactory'.
     {

**Error** C:\Documents and Settings\...........................................\Examples\AS2\04_avatarChat\it\gotoandplay\smartfoxserver\http\IHttpProtocolCodec.as: Line 13: The name of this class, 'it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec'.
     {

**Error** C:\Documents and Settings\...........................................\Examples\AS2\04_avatarChat\it\gotoandplay\smartfoxserver\http\RawProtocolCodec.as: Line 14: The name of this class, 'it.gotoandplay.smartfoxserver.http.RawProtocolCodec', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.RawProtocolCodec'.
     class it.gotoandplay.smartfoxserver.http.RawProtocolCodec implements IHttpProtocolCodec

**Error** C:\Documents and Settings\...........................................\Examples\AS2\04_avatarChat\it\gotoandplay\smartfoxserver\http\HttpConnection.as: Line 16: The name of this class, 'it.gotoandplay.smartfoxserver.http.HttpConnection', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.HttpConnection'.
     {

**Error** C:\Documents and Settings\...........................................\Examples\AS2\04_avatarChat\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 40: The name of this class, 'it.gotoandplay.smartfoxserver.SmartFoxClient', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.SmartFoxClient'.
     class it.gotoandplay.smartfoxserver.SmartFoxClient extends XMLSocket

Total ActionScript Errors: 5     Reported Errors: 5


On my Publish Settings i did have classpaths going to the it folder, but I'm not positive. I'm not going to random try because it might brake. :roll:

(As you can tell, I'm using AvatarChat)

Can someone tell me what's up with it please?

Thanks :) :cry:
Quackbay - The online virtual world for kids!
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 09 Sep 2011, 08:18

It seems you are referring to the same package twice. I would suggest checking your actionscript class paths. Note, if you manually copied the it.gotoandplay.smartfoxserver folder into the same directory where your project (fla) is located, having '.' in your actionscript class path definition will automatically include that package.
Smartfox's forum is my daily newspaper.
Aiidenb
Posts: 263
Joined: 16 Aug 2010, 22:08
Location: England
Contact:

Postby Aiidenb » 09 Sep 2011, 16:27

Okay, I'm getting new errors.


Code: Select all

**Error** Scene=Scene 1, layer={ code }, frame=9:Line 60: The class or interface 'SmartFoxClient' could not be loaded.
     var smartfox:SmartFoxClient = new SmartFoxClient()

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 136: The class or interface 'User' could not be loaded.
           var user:User       = userList[i]

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 235: The class or interface 'User' could not be loaded.
     smartfox.onUserVariablesUpdate = function(user:User)

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 264: The class or interface 'Room' could not be loaded.
     smartfox.onUserCountChange = function(roomObj:Room)

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 274: The class or interface 'User' could not be loaded.
     smartfox.onPublicMessage = function(msg:String, user:User)

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 294: The class or interface 'User' could not be loaded.
     smartfox.onAdminMessage = function(msg:String, user:User)

**Error** Scene=Scene 1, layer={ code }, frame=16:Line 483: The class or interface 'Room' could not be loaded.
        var room:Room = smartfox.roomList[roomId]

Total ActionScript Errors: 7     Reported Errors: 7


I have nothing in my classpath in Flash, and the 'it' & 'lib' folders are in the same place as my FLA. :S
Quackbay - The online virtual world for kids!
Aiidenb
Posts: 263
Joined: 16 Aug 2010, 22:08
Location: England
Contact:

Postby Aiidenb » 11 Sep 2011, 14:19

Ohnoo. -.- :roll:
In my classpath I have;

Code: Select all

C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\


I then get this error;

Code: Select all

**Error** Scene=Scene 1, layer={ code }, frame=9:Line 60: The class or interface 'SmartFoxClient' could not be loaded.
     var smartfox:SmartFoxClient = new SmartFoxClient()

If then i make the classpath this;

Code: Select all

C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\

I get loads of errors;

Code: Select all

**Error** C:\Documents and Settings\Aiden\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\Delegate.as: Line 14: The name of this class, 'mx.utils.Delegate', conflicts with the name of another class that was loaded, 'mx.utils.Delegate'.
     class mx.utils.Delegate extends Object

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\ObjectSerializer.as: Line 16: The name of this class, 'it.gotoandplay.smartfoxserver.ObjectSerializer', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.ObjectSerializer'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\http\LoaderFactory.as: Line 15: The name of this class, 'it.gotoandplay.smartfoxserver.http.LoaderFactory', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.LoaderFactory'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\http\IHttpProtocolCodec.as: Line 13: The name of this class, 'it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\http\RawProtocolCodec.as: Line 14: The name of this class, 'it.gotoandplay.smartfoxserver.http.RawProtocolCodec', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.RawProtocolCodec'.
     class it.gotoandplay.smartfoxserver.http.RawProtocolCodec implements IHttpProtocolCodec

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\http\HttpConnection.as: Line 16: The name of this class, 'it.gotoandplay.smartfoxserver.http.HttpConnection', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.http.HttpConnection'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\User.as: Line 14: The name of this class, 'it.gotoandplay.smartfoxserver.User', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.User'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\Room.as: Line 16: The name of this class, 'it.gotoandplay.smartfoxserver.Room', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.Room'.
     {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\JSON.as: Line 37: The name of this class, 'it.gotoandplay.smartfoxserver.JSON', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.JSON'.
     class it.gotoandplay.smartfoxserver.JSON {

**Error** C:\Documents and Settings\Aiden\Desktop\SmartFoxServerPRO_1.6.6TEST\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 40: The name of this class, 'it.gotoandplay.smartfoxserver.SmartFoxClient', conflicts with the name of another class that was loaded, 'it.gotoandplay.smartfoxserver.SmartFoxClient'.
     class it.gotoandplay.smartfoxserver.SmartFoxClient extends XMLSocket

I have this in my FLA;

Code: Select all

import it.gotoandplay.smartfoxserver.*
#include "lib/[flashAPI].as"
#include "lib/easingEquations.as"
#include "lib/easing.as"

And to me that looks fine. I have both it and lib files inside 04_avatarChat with my FLA.

Please help! :(
Quackbay - The online virtual world for kids!
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 13 Sep 2011, 00:48

Try removing 'it' folder as found in the same directory as your .fla folder somewhere outside.

Like I said, if you had '.' (period) listed in your classpath definition, it'll automatically search any subfolders of that folder where the .fla is located.

I would suggest making a brand new folder, and start from stratch. Then you'll be able to figure out what's causing the problem.
Smartfox's forum is my daily newspaper.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 55 guests