Search found 4 matches

by rikki-tikki
15 Dec 2006, 15:19
Forum: The Bug Trap
Topic: possible error in api?
Replies: 3
Views: 178

Re: possible error in api?

I don't know for wich version of the API you talk, but for SFS 5.0 pro AS2 API the situation is:

Code: Select all

Usage:
smartFox.onObjectReceived(obj:Object, sender:User) 
look at class SmartFoxClient, private method handleSysMessages, line 515
where onObjectReceived "event" is fired
by rikki-tikki
15 Dec 2006, 12:43
Forum: The Bug Trap
Topic: possible error in api?
Replies: 3
Views: 178

possible error in api?

now is...

Code: Select all

scope.onObjectReceived(asObj, scope.roomList[fromRoom].userList[senderId] )
may be must be...

Code: Select all

scope.onObjectReceived(asObj, scope.roomList[fromRoom].userList[senderId], fromRoom)
?
by rikki-tikki
17 Jul 2006, 10:45
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onJoinRoom - need help
Replies: 0
Views: 3711

onJoinRoom - need help

// ...skipped...
private function handleRoomJoin( roomObj: Room ): Void {

trace( "[INFO] joined to room : " + roomObj.getName() );
trace( roomObj );
}
public function init(): Void {
server = new SmartFoxClient();

server.onConnection = Delegate.create( this, handleConnection );
server ...
by rikki-tikki
13 Apr 2006, 12:09
Forum: SmartFoxServer 1.x Discussions and Help
Topic: smartfox events
Replies: 3
Views: 8258

Re: smartfox events

as far, as i can understand source code of smartfoxserver flash api, it does not support mx.events.EventDispatcher, so you can't use addEventListener method directly to api.
class SmartFoxClient have some abstract functions (onLogin, onRoomUpdate and so on), but this functions does not dispatch any ...