A | |
addBuddy, SmartFoxClient | |
autoJoin, SmartFoxClient | |
C | |
clearBuddyList, SmartFoxClient | |
clone, SFSEvent | |
connect, SmartFoxClient | |
createRoom, SmartFoxClient | |
D | |
disconnect, SmartFoxClient | |
G | |
getActiveRoom, SmartFoxClient | |
getAllRooms, SmartFoxClient | |
getBuddyRoom, SmartFoxClient | |
getId | |
getMaxSpectators, Room | |
getMaxUsers, Room | |
getMyPlayerIndex, Room | |
getName | |
getPlayerId, User | |
getRandomKey, SmartFoxClient | |
getRoom, SmartFoxClient | |
getRoomByName, SmartFoxClient | |
getRoomList, SmartFoxClient | |
getSpectatorCount, Room | |
getUploadPath, SmartFoxClient | |
getUser, Room | |
getUserCount, Room | |
getUserList, Room | |
getVariable | |
getVariables | |
getVersion, SmartFoxClient | |
I | |
isGame, Room | |
isLimbo, Room | |
isModerator, User | |
isPrivate, Room | |
isSpectator, User | |
isTemp, Room | |
J | |
joinRoom, SmartFoxClient | |
L | |
leaveRoom, SmartFoxClient | |
loadBuddyList, SmartFoxClient | |
login, SmartFoxClient | |
logout, SmartFoxClient | |
R | |
removeBuddy, SmartFoxClient | |
Room, Room | |
roundTripBench, SmartFoxClient | |
S | |
sendModeratorMessage, SmartFoxClient | |
sendObject, SmartFoxClient | |
sendObjectToGroup, SmartFoxClient | |
sendPrivateMessage, SmartFoxClient | |
sendPublicMessage, SmartFoxClient | |
sendXtMessage, SmartFoxClient | |
setBuddyVariables, SmartFoxClient | |
setRoomVariables, SmartFoxClient | |
setUserVariables, SmartFoxClient | |
SFSEvent, SFSEvent | |
SmartFoxClient, SmartFoxClient | |
switchSpectator, SmartFoxClient | |
T | |
toString, SFSEvent | |
U | |
uploadFile, SmartFoxClient | |
User, User |
Add a new buddy to the buddy list.
public function addBuddy( buddyName: String ):void
Automatically join the the default room (if exist) for the current Zone.
public function autoJoin():void
Remove all contacts from the buddy list.
public function clearBuddyList():void
Create and returns a copy of the current instance.
function clone():Event
Establish a connection to SmartFoxServer.
public function connect( ipAdr: String, port: int = 9339 ):void
Dynamically create a new room in the current Zone.
public function createRoom( roomObj: Object, roomId: int = -1 ):void
Closes the current connection to SmartFoxServer.
public function disconnect():void
Get the currently active Room object.
public function getActiveRoom():Room
Get the list of rooms.
public function getAllRooms():Array
Request the roomId(s) of the room(s) a buddy is currently joined to.
public function getBuddyRoom( buddy: Object ):void
Get the id of the room.
public function getId():int
Get the user id.
public function getId():int
Retrieve the maximum number of spectators that can join the room.
public function getMaxSpectators():int
Retrieve the maximum number of users that can join the room.
public function getMaxUsers():int
Retrieve the player id for the current user in the room.
public function getMyPlayerIndex():int
Get the name of the room.
public function getName():String
Get the user name.
public function getName():String
Retrieve the player id of the user.
public function getPlayerId():int
Gets a random string key from the server.
public function getRandomKey():void
Get a Room object from its id.
public function getRoom( rid: int ):Room
Get a Room object from its name.
public function getRoomByName( roomName: String ):Room
Retrieve the list of rooms in the current Zone.
public function getRoomList():void
Retrieve the number of spectators currently inside the room.
public function getSpectatorCount():int
Get the default upload path of the embedded webserver.
public function getUploadPath():String
Look for a user in the room.
public function getUser( userId: * ):User
Retrieve the number of users currently inside the room.
public function getUserCount():int
Get the list of users currently inside the room.
public function getUserList():Array
Retrieve a Room Variable.
public function getVariable( varName: String ):Object
Retrieve a User Variable.
public function getVariables():Array
Retrieve the list of all Room Variables.
public function getVariables():Array
Get the SmartFoxServer Flash API version.
public function getVersion():String
A boolean flag indicating if the room is a “game room”.
public function isGame():Boolean
A boolean flag indicating if the room is in “limbo mode”.
public function isLimbo():Boolean
A boolean flag indicating if the user is a Moderator in the current Zone.
public function isModerator():Boolean
A boolean flag indicating if the room is private (password protected).
public function isPrivate():Boolean
A boolean flag indicating if the user is a spectator in the current room.
public function isSpectator():Boolean
A boolean flag indicating if the room is dynamic/temporary.
public function isTemp():Boolean
Join a room.
public function joinRoom( newRoom: *, pword: String = "", isSpectator: Boolean = false, dontLeave: Boolean = false, oldRoom: int = -1 ):void
Disconnect the user from the specified room.
public function leaveRoom( roomId: int ):void
Loads the buddy list for the current user.
public function loadBuddyList():void
Perform the default login procedure.
public function login( zone: String, name: String, pass: String ):void
Log the user out of the current Zone.
public function logout():void
Remove a buddy from the buddy list.
public function removeBuddy( buddyName: String ):void
The default contructor.
public function Room( id: int, name: String, maxUsers: int, maxSpectators: int, isTemp: Boolean, isGame: Boolean, isPrivate: Boolean, isLimbo: Boolean, userCount: int = 0, specCount: int = 0 )
Send a roundTrip request to the server to test the speed of the connection.
public function roundTripBench():void
Send a moderator message to an entire Zone, a Room or a single User.
public function sendModeratorMessage( message: String, type: String, id: int = -1 ):void
Send an Actionscript object to the other users in the room.
public function sendObject( obj: Object, roomId: int = -1 ):void
Send an Actionscript object to a group of users in the room.
public function sendObjectToGroup( obj: Object, userList: Array, roomId: int = -1 ):void
Send a private message to a user.
public function sendPrivateMessage( message: String, recipientId: int, roomId: int = -1 ):void
Send a public message.
public function sendPublicMessage( message: String, roomId: int = -1 ):void
Send a request to a server side extension.
public function sendXtMessage( xtName: String, cmd: String, paramObj: *, type: String = "xml", roomId: int = -1 ):void
Set one or more Buddy Variables.
public function setBuddyVariables( varList: Array ):void
Set on or more Room Variables.
public function setRoomVariables( varList: Array, roomId: int = -1, setOwnership: Boolean = true ):void
Set on or more User Variables.
public function setUserVariables( varObj: Object, roomId: int = -1 ):void
The default contructor.
public function SFSEvent( type: String, params: Object )
The default contructor.
public function SmartFoxClient( debug: Boolean = false )
Turn a spectator inside a game room into a player.
public function switchSpectator( roomId: int = -1 ):void
Return a String containing all the properties of the current instance.
function toString():String
Upload a file to the embedded webserver.
public function uploadFile( fileRef: FileReference, id: int = -1, nick: String = "", port: int = -1 ):void
The default contructor.
public function User( id: int, name: String )