setBuddyVariables()
Availability:
Flash Player 6
SmartFoxServer Basic / Pro (from version 1.4.0)
Usage:
smartFox.setBuddyVariables(varObj)
Description:
Set a number of properties of a buddy. These variables will be received by the other users who have added this user as a buddy.
It can be used to store additional information for a buddy like the name of his/her avatar or his current status ("Available", "Busy" etc...)
Parameters:
varObj | an object containing the variables to set |
Returns:
Fires the onBuddyListUpdate event
Example:
Example #1
we set two Buddy Variables to show the other clients our status and the current audio track we're listening to.
var bVars = new Object() bVars["status"] = "Be right back" bVars["track"] = "What is hip" smartFox.setBuddyVariables(bVars)
See also:
onBuddyListUpdate