Page 1 of 1

List Component

Posted: 26 Apr 2009, 13:10
by darkkick
Hey guys. well im having some troubles with the list component and onUserLeaveRoom event.

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});
}

The same problem

Posted: 07 May 2009, 05:53
by gbala
Facing same problem...
can any one help....