userlist displays guest_# instead of myUserName

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

Moderators: Lapo, Bax

Post Reply
gato_
Posts: 12
Joined: 07 Jul 2009, 22:55

userlist displays guest_# instead of myUserName

Post by gato_ »

I am not using the loginBox component, and no matter when I define the property connector_mc.connection.myUserId, the userList still displays the generic one. The documentation says this should be done after login, but I''m affraid I am not doing it at the right time
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Which version of SmartFoxBits are you using? AS2, AS3 Flash or AS3 Flex?
Paolo Bax
The SmartFoxServer Team
gato_
Posts: 12
Joined: 07 Jul 2009, 22:55

Post by gato_ »

The as3 API. I think it has something to do with the myUserName property accessibility.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The Userlist component shows the list of the connected users. Their names are received from the server. If you get guest_x it means that the users logged-in with the default procedure, where a name is assigned by the server itself. This has nothing to do with setting the myUserId property.
In your login procedure you have to send the username you want to be displayed to the server.
Paolo Bax
The SmartFoxServer Team
gato_
Posts: 12
Joined: 07 Jul 2009, 22:55

Post by gato_ »

ok. Thank you very much. I guess I confused both things.
Post Reply