buddyList

Availability:

Flash Player 7, 8
SmartFoxServer Basic / Pro

Usage:

smartFox.buddyList

Description:

An array containing the objects representing each buddy of the client's buddy list.
Each entry in the list is an object with the following properties:

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:String in smartFox.buddyList)
 {
	var name:String = smartFox.buddyList[i].name	
	var stat:String = smartFox.buddyList[i].isOnline ? "online" : "offline"

	trace("Buddy name: " + smartFox.buddyList + " is " + stat)
	
	// trace all buddy variables
	for (var j:String in buddyList[i].variables)
		trace("Property: " + j + " => " + buddyList[i].variables[j]
 }

See also:

onBuddyList(), onBuddyListUpdate()