problem in all the Examples

Post here all your questions related with beta SmartFoxServer API, such as Shockwave, Ajax ...

Moderators: Lapo, Bax

Almogzxp
Posts: 3
Joined: 22 Apr 2010, 16:03

problem in all the Examples

Postby Almogzxp » 02 May 2010, 18:44

**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


how do i fix all this.
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 03 May 2010, 07:57

As the error shows, Flash is not able to recognize the SmartFoxClient, User, etc. classes. You have to add the SmartFoxServer API classes to the classpath of your .fla file.
Read chapter 4.1 of the online documentation.
Paolo Bax
The SmartFoxServer Team
Geri
Posts: 3
Joined: 26 May 2010, 08:41
Location: Hungary
Contact:

Postby Geri » 26 May 2010, 08:54

bax wrote:As the error shows, Flash is not able to recognize the SmartFoxClient, User, etc. classes. You have to add the SmartFoxServer API classes to the classpath of your .fla file.
Read chapter 4.1 of the online documentation.


I have the same problem here, but error still generates.
Added the API trough Adobe Extensions, and added the classpath to the file.

But it claims: Tha class or interface 'SmartFoxClien' could not be loaded.

What now?
Just simply opened the simpleConnect.fla and hit Test Movie (CS4, AS2, Win 7).

Could be something around idiot Windows 7 restrictions on accessing stuff in Program Files?

Return to “Other Client API”

Who is online

Users browsing this forum: No registered users and 2 guests