some bugs in document
Posted: 04 Feb 2006, 13:50
4.4 User class
These should be returns the " user" not the "room "
4.4 getActiveRoom()This should be var roomObj:Room=smartFox.getActiveRoom()
4.4 joinRoom() the name of the room should be OK to be a parameter..
4.4sendObjectToGroup()"roomId" should be "userList"
4.4 onLogin()success:Boolean..
4.4 onRoomListUpdate()
roomList only contains a userList of current room.
this point should be mentioned. this makes many people confused I think.
4.4 onUserEnterRoom()userObj:User
7.1 User classshould be user variable
Code: Select all
getId():Number returns the room Id
getName():String returns the room name
getVariable(varName:String):Object returns a room variable
getVariables():Object returns a list of all the room variables
isSpectator():Boolean returns true if the room is a game room4.4 getActiveRoom()
Code: Select all
Example:
var roomId:Number = smartFox.getActiveRoom()
4.4 joinRoom()
Code: Select all
Parameters:
roomId the id of the room you want to join
4.4sendObjectToGroup()
Code: Select all
roomId An array containing one or more recipient id4.4 onLogin()
Code: Select all
Usage:
smartFox.onLogin(success:String, name:String, errorMsg:String) 4.4 onRoomListUpdate()
roomList only contains a userList of current room.
this point should be mentioned. this makes many people confused I think.
4.4 onUserEnterRoom()
Code: Select all
Example:
smartFox.onUserEnterRoom = function(roomId:Number, userObj:Object)7.1 User class
Code: Select all
getVariable(name) Return the room variable with the requested name
getVariables() Return a java.util.HashMap with all the Room Variables