What's Wrong With SmartFoxServer Pro's API?
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
What's Wrong With SmartFoxServer Pro's API?
I think something is wrong with SmartFoxServer Pro, or is it Flash? Everytime I download and install SFS Pro or SFS Basic, I get the same error:
-------------WARNING! API is obsolete-------------
or something like that. How can I fix this error? Im using an old version of Flash, Flash MX 2004. I like it better than CS4. Anyway, I have used SFS Pro many times before this error, and it has happened to me before actually. It seems to fix on it's own, but I don't think it will this time.
I have the correct API installed, and everything. I don't know what the problem is.
Someone please tell me how to fix this.
Thanks,
CoolBoy714CP
-------------WARNING! API is obsolete-------------
or something like that. How can I fix this error? Im using an old version of Flash, Flash MX 2004. I like it better than CS4. Anyway, I have used SFS Pro many times before this error, and it has happened to me before actually. It seems to fix on it's own, but I don't think it will this time.
I have the correct API installed, and everything. I don't know what the problem is.
Someone please tell me how to fix this.
Thanks,
CoolBoy714CP
Make sure you read the API usage instruction, first:
http://www.smartfoxserver.com/docs/docP ... alling.htm
Also, you probably have older SmartFoxServer API installed via the Adobe/Macromedia Extenion Manager which you can safely uninstall.
http://www.smartfoxserver.com/docs/docP ... alling.htm
Also, you probably have older SmartFoxServer API installed via the Adobe/Macromedia Extenion Manager which you can safely uninstall.
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
When I tried what you said to do in that link, I got a total of 6 errors. They are as followed:
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1555: There is no method with the name 'Delegate'.
httpConnection = new HttpConnection(Delegate.create(this, handleHttpConnect), Delegate.create(this, handleHttpClose), Delegate.create(this, handleHttpData), Delegate.create(this, handleHttpError))
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1702: There is no method with the name 'Delegate'.
configLoader.onLoad = Delegate.create( this, onConfigLoadSucceeded )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: There is no property with the name 'ex'.
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 2898: There is no property with the name 'ex'.
trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 4702: There is no method with the name 'Delegate'.
socketConnectionTimeoutThread = setInterval( Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 5022: There is no method with the name 'Delegate'.
this.pollingThread = this.pollingDelayFn( Delegate.create( this, this.handleDelayedPoll ), this._httpPollSpeed )
Total ActionScript Errors: 6 Reported Errors: 6
What's wrong with it now?
Please reply asap.
Thanks,
CoolBoy714CP
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1555: There is no method with the name 'Delegate'.
httpConnection = new HttpConnection(Delegate.create(this, handleHttpConnect), Delegate.create(this, handleHttpClose), Delegate.create(this, handleHttpData), Delegate.create(this, handleHttpError))
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1702: There is no method with the name 'Delegate'.
configLoader.onLoad = Delegate.create( this, onConfigLoadSucceeded )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: There is no property with the name 'ex'.
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 2898: There is no property with the name 'ex'.
trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 4702: There is no method with the name 'Delegate'.
socketConnectionTimeoutThread = setInterval( Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Flash API\Actionscript 2.0\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 5022: There is no method with the name 'Delegate'.
this.pollingThread = this.pollingDelayFn( Delegate.create( this, this.handleDelayedPoll ), this._httpPollSpeed )
Total ActionScript Errors: 6 Reported Errors: 6
What's wrong with it now?
Please reply asap.
Thanks,
CoolBoy714CP
The Delegate class is part of the Flash packages --> mx.utils.Delegate
It seems very strange that your compiler is not able to find the class. I would suspect your current Flash installation is corrupt. Or maybe it's just too old.
You said you use MX2004. Make sure that you have the 2nd update for tha version installed. If I remember correctly it was version 7.2
I cannot guarantee it will work with that but at least you can try.
It seems very strange that your compiler is not able to find the class. I would suspect your current Flash installation is corrupt. Or maybe it's just too old.
You said you use MX2004. Make sure that you have the 2nd update for tha version installed. If I remember correctly it was version 7.2
I cannot guarantee it will work with that but at least you can try.
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Well, I uninstalled, then reinstalled Flash, and that didn't do anything. So, I uninstalled and reinstalled SmartFoxServer and got these errors: (in AvatarChat.fla)
**Error** Scene=Scene 1, layer={ code }, frame=9:Line 60: The class 'SmartFoxClient' could not be loaded.
var smartfox:SmartFoxClient = new SmartFoxClient()
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 136: The class 'User' could not be loaded.
var user:User = userList[i]
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 235: The class 'User' could not be loaded.
smartfox.onUserVariablesUpdate = function(user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 264: The class 'Room' could not be loaded.
smartfox.onUserCountChange = function(roomObj:Room)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 274: The class 'User' could not be loaded.
smartfox.onPublicMessage = function(msg:String, user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 294: The class 'User' could not be loaded.
smartfox.onAdminMessage = function(msg:String, user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 483: The class 'Room' could not be loaded.
var room:Room = smartfox.roomList[roomId]
Total ActionScript Errors: 7 Reported Errors: 7
Any help would be appreciated.
Thanks,
Cool Boy 714
**Error** Scene=Scene 1, layer={ code }, frame=9:Line 60: The class 'SmartFoxClient' could not be loaded.
var smartfox:SmartFoxClient = new SmartFoxClient()
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 136: The class 'User' could not be loaded.
var user:User = userList[i]
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 235: The class 'User' could not be loaded.
smartfox.onUserVariablesUpdate = function(user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 264: The class 'Room' could not be loaded.
smartfox.onUserCountChange = function(roomObj:Room)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 274: The class 'User' could not be loaded.
smartfox.onPublicMessage = function(msg:String, user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 294: The class 'User' could not be loaded.
smartfox.onAdminMessage = function(msg:String, user:User)
**Error** Scene=Scene 1, layer={ code }, frame=16:Line 483: The class 'Room' could not be loaded.
var room:Room = smartfox.roomList[roomId]
Total ActionScript Errors: 7 Reported Errors: 7
Any help would be appreciated.
Thanks,
Cool Boy 714
It's the same problem as before:
Make sure you read the API usage instruction, first:
http://www.smartfoxserver.com/docs/docP ... alling.htm
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1555: There is no method with the name 'Delegate'.
httpConnection = new HttpConnection(Delegate.create(this, handleHttpConnect), Delegate.create(this, handleHttpClose), Delegate.create(this, handleHttpData), Delegate.create(this, handleHttpError))
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1702: There is no method with the name 'Delegate'.
configLoader.onLoad = Delegate.create( this, onConfigLoadSucceeded )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: There is no property with the name 'ex'.
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 2898: There is no property with the name 'ex'.
trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 4702: There is no method with the name 'Delegate'.
socketConnectionTimeoutThread = setInterval( Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 5022: There is no method with the name 'Delegate'.
this.pollingThread = this.pollingDelayFn( Delegate.create( this, this.handleDelayedPoll ), this._httpPollSpeed )
Total ActionScript Errors: 6 Reported Errors: 6
Ive done everything youve said, and it still comes up with the same errors above. Is it because my Flash is too old?
Please reply asap again.
Thanks,
CoolBoy714CP
httpConnection = new HttpConnection(Delegate.create(this, handleHttpConnect), Delegate.create(this, handleHttpClose), Delegate.create(this, handleHttpData), Delegate.create(this, handleHttpError))
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1702: There is no method with the name 'Delegate'.
configLoader.onLoad = Delegate.create( this, onConfigLoadSucceeded )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: There is no property with the name 'ex'.
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 2898: There is no property with the name 'ex'.
trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 4702: There is no method with the name 'Delegate'.
socketConnectionTimeoutThread = setInterval( Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout )
**Error** C:\Program Files\SmartFoxServerPRO_1.6.6\Examples\AS2\01_simpleConnect\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 5022: There is no method with the name 'Delegate'.
this.pollingThread = this.pollingDelayFn( Delegate.create( this, this.handleDelayedPoll ), this._httpPollSpeed )
Total ActionScript Errors: 6 Reported Errors: 6
Ive done everything youve said, and it still comes up with the same errors above. Is it because my Flash is too old?
Please reply asap again.
Thanks,
CoolBoy714CP
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 60 guests