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