List Component

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
darkkick
Posts: 3
Joined: 26 Apr 2009, 13:03

List Component

Post 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});
}
gbala
Posts: 15
Joined: 13 Apr 2009, 14:05

The same problem

Post by gbala »

Facing same problem...
can any one help....
Post Reply