How Do I get the buddy list in actionscript 3:
Heres the code I thought would work.
function update(evt:SFSEvent):void{
var roomList_lb:Array=new Array();
var roomList:String=evt.params.getUserList();
for (var i:String in roomList)
{
var room = roomList[i]
roomList_lb.addItem(room.getName() + " (" + room.getUserCount() + ")", room.getId())
}
roomList_lb.sortItemsBy("label", "ASC")
trace(roomList_lb);
sfs.autoJoin();
}
Also can you convert your example files like simple chat avanced chat.. into actionscript 3 That way If it was converted and you added how you get the userlist in the docs file I wouldnt be asking any of these questions.
Cheers,
Need help!
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 62 guests