Flash BuddyList.getBuddy()

From J2Play

Jump to: navigation, search

Contents

Description

Get the buddy object specified by buddy's username

Syntax

function getBuddy(username : String) : Buddy;

Parameters

* @param username defines username of buddy

Return Value

@return Buddy object of specified username

Examples

Get the buddy object of user '1234567.network'

 import ca.j2x.flash.Buddy;
 import ca.j2x.flash.IBuddyList;

 var buddy : Buddy = buddylist.getBuddy('1234567.network');
Personal tools