Code: Select all
{
var sendA:Array = null;
var i:* = undefined;
var user:User = null;
updateUserList();
if(reacher.gameRoomMode)
{
sendA = new Array();
for(i in userList)
{
if(userList[i] is User)
{
user = userList[i];
sendA.push({
"name":user.getName(),
"id":user.getId()
});
}
}
reacher.updateCList_Join(sendA,e.params.user.getName());
}
}
I am trying to convert this code to be working in my ActionScript Extension. Basically, it sends over to the server the username and updates the userList with the name of the user and stuff. It sends over 'userJoin' to the server. I have tried to use the Docs to help me and some examples but I have not yet been able to completely figure this out.
Any help would be appreciated!
![Question :?:](./images/smilies/icon_question.gif)