Userlist event not working

Everything about the SmartFoxBits UI Components for SmartFoxServer 1.x. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

Post Reply
warhell
Posts: 199
Joined: 18 Aug 2007, 16:49
Location: Silicon Valley, CA
Contact:

Userlist event not working

Post by warhell »

Code: Select all

// grab the selected user
userList_mc.addEventListener(BitEvent.onUserChange, myListener)
function myListener(evt:BitEvent):Void
{
	trace("wtf");
	userSelected = evt.params.selectedUser;
	
}
This doesn't seem to get called when the user selects someone from the userlist, any ideas?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

We checked your code within the "Lobby" example that comes with the SmartFoxBits package, and it works perfectly. Simply add it in the "Chat" labeled frame.
Paolo Bax
The SmartFoxServer Team
Post Reply