buddyList
Availability:
Flash Player 6.0
SmartFoxServer Basic / Pro
Usage:
smartFox.buddyList
Description:
An array containing the objects representing each buddy of the client's buddy list.| id | - user Id | |
| name | - buddy name | |
| isOnline | - boolean, true if the buddy is currently online | |
| variables | - an object with extra properties of the buddy |
Parameters:
| none |
Returns:
Nothing.
Example:
for (var i in smartFox.buddyList)
{
var name = smartFox.buddyList[i].name
var stat = smartFox.buddyList[i].isOnline ? "online" : "offline"
trace("Buddy name: " + smartFox.buddyList + " is " + stat)
// trace all buddy variables
for (var j in buddyList[i].variables)
trace("Property: " + j + " => " + buddyList[i].variables[j]
}
See also:
onBuddyList(), onBuddyListUpdate()