well for starters i join a room, get userlist, populate my list with the users, when a new user enters a room, gets automaticly added to the list but when they leave the room, the list doesnt update.
i am using .removeItem() to remove the item from the list. but doesnt seem to work. does anyone know how to remove the item from the list/tilelist when someone leaves the room?
my code
Code: Select all
server.addEventListener(SFSEvent.onUserLeaveRoom, onUserLeaveRoomEvent);
function onUserLeaveRoomEvent(e:SFSEvent):void
{
userList_lst.removeItem({label:e.param.getName});
}