Userlist event not working

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

Moderators: Lapo, Bax

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

Userlist event not working

Postby warhell » 01 May 2008, 01:46

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: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 05 May 2008, 08:20

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

Return to “SmartFoxBits for SFS 1.x”

Who is online

Users browsing this forum: No registered users and 1 guest