get this users unique ID

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

Moderators: Lapo, Bax

Post Reply
starvingeyes
Posts: 17
Joined: 25 Oct 2007, 05:50

get this users unique ID

Post by starvingeyes »

Sorry for all the beginners questions...

Is there a simple code I can put somewhere to get the unique ID of the user?

Jason
potmo
Posts: 154
Joined: 02 Feb 2007, 14:28
Location: Stockholm Sweden
Contact:

Post by potmo »

JAVA:
user.getUserId();

Dont know about flash
Nisse Bergman
Raketspel
starvingeyes
Posts: 17
Joined: 25 Oct 2007, 05:50

Post by starvingeyes »

i'm pretty sure this isn't right...this is in flash to get the unique id number assigned to each user.
alcho
Posts: 84
Joined: 02 Dec 2006, 19:37
Location: UK
Contact:

Post by alcho »

From flash API:

user.getId():Number : returns the user Id

Is this what you mean?
Its all about the SmartFox!
starvingeyes
Posts: 17
Joined: 25 Oct 2007, 05:50

Post by starvingeyes »

how do i write that? From in the API? I can't just put it in the flash movie? this doesnt work:

uid = user.getId()
trace("uid: "+uid)

how do I write this properly?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Please do check the provided examples and follow the initial tutorials. They will clarify your doubts
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply