Page 1 of 1

get this users unique ID

Posted: 14 Nov 2007, 19:39
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

Posted: 14 Nov 2007, 22:53
by potmo
JAVA:
user.getUserId();

Dont know about flash

Posted: 14 Nov 2007, 23:26
by starvingeyes
i'm pretty sure this isn't right...this is in flash to get the unique id number assigned to each user.

Posted: 15 Nov 2007, 09:14
by alcho
From flash API:

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

Is this what you mean?

Posted: 15 Nov 2007, 16:47
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?

Posted: 16 Nov 2007, 06:21
by Lapo
Please do check the provided examples and follow the initial tutorials. They will clarify your doubts