Flash BuddyList.addBuddy()

From J2Play

Jump to: navigation, search

Contents

Description

Adds player to the buddylist. After add, the buddy status will be STATUS_PENDING until the player confirm the buddy request.

Syntax

function addBuddy(username : String) : Boolean;

Parameters

* @param username defines username of buddy

Return Value

@return Boolean true if the adding succeeds, or false if fails.

Examples

Add player '1234567.network' to current player buddylist

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

 var succ : Boolean = buddylist.addBuddy('1234567.network');
Personal tools