Flash Access Friends List
From J2Play
Friends List
The Friends List API allows give you access to the players friends list so you can retrieve the users friends and create interesting social games.
Get the BuddyList interface by following way, and use it to manipulate buddies
import ca.j2x.flash.IController; import ca.j2x.flash.IBuddyList;
var buddylist : IBuddyList = controller.getBuddyList();
The BuddyList interface provides the following methods:
- BuddyList.getSize()
- BuddyList.getBuddy()
- BuddyList.indexOf()
- BuddyList.getUsername()
- BuddyList.getNickname()
- BuddyList.getStatus()
- BuddyList.getSessions()
- BuddyList.getDetails()
- BuddyList.addBuddy()
- BuddyList.addBuddies()
- BuddyList.removeBuddy()
- BuddyList.searchUsers()
- BuddyList.getAllBuddies()
- BuddyList.sendBuddyList()
- BuddyList.reload()
- BuddyList.sendChatMessage()
- BuddyList.sendChatMessageToSession()
- BuddyList.acceptBuddy()
- BuddyList.declineBuddy()
