Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges



Level 3

when I call:

           _cSession.userManager.setUserDisplayName(_cSession.userManager.myUserID, sNewname);



isn't updated emediately. Is that normal?

2 Replies


Level 10

Yup, it's normal - your message must round-trip to the server and back

before any update occurs. Because this is a multi-user app, it's useful,

because the multi-user state doesn't change until it changes for everyone.

You can always bind the arraycollection to something or listen for events

that items have been changed if you need to take action.



Level 3

after login I populate a user list, but they init with MY name.

I fixed it by by checking with myUserID :

                var dName:String;
                //Add users to the userArray data provider and tie the data provider to the list
                for (var i:int = 0; i < tmpArray.length; i++) {
                    if ( tmpArray[i].userID == _cSession.userManager.myUserID ) {
                        dName = sMyName;
                    } else {
                        dName = tmpArray[i].displayName;
                    userArray.addItem({label:dName, data:tmpArray[i]});