Page 1 of 1

Need help!

Posted: 01 Mar 2008, 22:35
by xxxxxxss
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,

Posted: 01 Mar 2008, 23:57
by xxxxxxss
After playing around with it for 2 days I got it yay xD ^^ woot =D =P ^^ xD =) :)

Posted: 03 Mar 2008, 07:30
by Lapo
The AS3 SimpleChat example is a conversion of the AdvancedChat. It has the same features :wink: