Getting at the User object after logging in but not joining
Posted: 26 May 2010, 11:10
I'm using the AS3 client API and I'm having trouble working out if/how I can get access to the UserVariables after a user has logged in but before the user joins a room. I perform a custom login and get the username back in the extension response.
I can see in the client api docs I can set uservariables by doing sfsClient.setUserVariables but how can I get the user variables, there doesn't seem to be a coresponding method to get at user variables. I can see that via the Room I could do something like this to get at the User object:
sfsClient.getActiveRoom().getUser(sfsClient.myUsername())
But this only works if the user has joined a room, is there anyway to gget a handle on this if the user has yet to join a room?
Many thanks
I can see in the client api docs I can set uservariables by doing sfsClient.setUserVariables but how can I get the user variables, there doesn't seem to be a coresponding method to get at user variables. I can see that via the Room I could do something like this to get at the User object:
sfsClient.getActiveRoom().getUser(sfsClient.myUsername())
But this only works if the user has joined a room, is there anyway to gget a handle on this if the user has yet to join a room?
Many thanks