Avatar

Employee

Hi Arun,

Thanks for the patch. Regarding issue 1), users are indeed broadcasting a custom status on the customFields property when they enter the lobby (so we fall in the 1b use-case then):

private function fieldRegisterHandler(event:UserEvent = null):void
        {
            if ( userManager.isSynchronized)
            {
                userManager.setCustomUserField( userManager.myUserID, CUSTOM_STATUS_FIELD, STATUS_AVAILABLE);
            }
        }

This indeed seems to force every users to fetch the userDescriptor (note that anonymousPresence was enabled), is there a way to disable this? I added a filter function on a ListCollectionView created on top of the userManager.userCollection in the meantime so this is not really a blocker.

I'll try the patch tomorrow morning.

PS, I'm using the simpleChat component and it seems that the autoscroll feature doesn't work for me (I'm using Flex 4.1 so maybe this is related). I removed the _detachedScrolling Timer and changed the onHTMLChange function:

protected function onHtmlTextChange(p_event:Event):void
        {
                _history.verticalScrollPosition = _history.maxVerticalScrollPosition;
        }

It's a bit brutal but it works for me.

Thanks for the help!