onBuddyList()
Availability:
Flash Player 7, 8
SmartFoxServer Basic / Pro
Usage:
smartFox.onBuddyList(list:Array)
Description:
The event is fired when the buddy list for the current user is loaded from the server using the loadBuddyList() method.
Parameters:
| list | An array of objects representing the buddyList |
| id | buddy id | |
| name | buddy name | |
| isOnline | a boolean value. True if the buddy is currently onlie | |
| variables | an object with extra properties of the buddy |
Returns:
nothing
Example:
smartFox.onBuddyList = function(list:Array)
{
for (var b:String in list)
{
var name:String = list[b].name
var status:String = "offline"
if (list[b].isOnline)
status = "online"
trace("Buddy " + name + " is currently " + status)
}
}
See also:
onBuddyListError(), onBuddyListUpdate(), onBuddyRoom()