onBuddyList()
Availability:
Flash Player 6.0
SmartFoxServer Basic / Pro
Usage:
smartFox.onBuddyList(list)
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)
{
for (var b in list)
{
var name = list[b].name
var status = "offline"
if (list[b].isOnline)
status = "online"
trace("Buddy " + name + " is currently " + status)
}
}
See also:
onBuddyListError(), onBuddyListUpdate(), onBuddyRoom()