Flash BuddyList.indexOf()

From J2Play

Jump to: navigation, search

Contents

Description

Get the current index of the player specified by username

Syntax

public function getIndex(username: String) : Number;

Parameters

* @param username of the buddy

Return Value

@return index defines the position in the buddylist

Examples

Get the index of buddy '1234567.network'

 import ca.j2x.flash.IBuddyList;

 var index : Number = buddylist.getIndex('1234567.network');
Personal tools