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

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

userlist displays guest_# instead of myUserName

Postby gato_ » 07 Jul 2009, 22:59

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

Postby Bax » 08 Jul 2009, 06:23

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

Postby gato_ » 08 Jul 2009, 08:31

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

Postby Bax » 08 Jul 2009, 11:05

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

Postby gato_ » 08 Jul 2009, 11:30

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

Return to “SmartFoxBits for SFS 1.x”

Who is online

Users browsing this forum: No registered users and 2 guests