ok so in my Model i am created a new ConnectSession and authing it thus:
_authenticator = new AdobeHSAuthenticator();
_authenticator.authenticationKey = _token;
_connectSession = new ConnectSession();
_connectSession.authenticator = _authenticator;
_connectSession.roomURL = _roomURL;
_connectSession.login();
then once that's all authed and logged in nicely, over in my view i'm creating a simple chat and a roster thus:
_chat = new SimpleChat();
_chat.connectSession = _connectSessionProxy.connectSession;
chatWrapper.addChild(_chat);
_roster = new Roster();
_roster.connectSession = _connectSessionProxy.connectSession;
_roster.subscribe();
chatParticipantsContainer.addChild(_roster);
both are created, both successfully added to the stage [and therefore both fully initialised] but only the SimpleChat is 'working'. i can invite others into my chat, we can chat, but we are never listed in the roster.
why's that then?
![]()
Views
Replies
Total Likes
erm, so having not worked for 2 days, it just started working......................
i must have changed something......................
dunno wot......................
er......................
Views
Replies
Total Likes
think it was because i was giving the roster an itemRenderer, assumig that'd be fine becaues it extended 'List'. what my client wants is... a simple list basically. what's the lowdown on styling a roster? or would i be better to listen to newUser events and roll my own itemRenderered list?
Views
Replies
Total Likes
btw, fyi, the roster component just threw this error when i clicked the wee arrow to the right of a chat participants name:
TypeError: Error #2007: Parameter colors must be non-null.
at flash.display::Graphics/beginGradientFill()
at com.adobe.coreUI.controls::CustomMenu/updateDisplayList()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/coreUI/controls/CustomMenu.as:224]
at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3280]
at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:880]
at mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5679]
at com.adobe.rtc.pods::Roster/onShowMenu()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/rtc/pods/Roster.as:530]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at com.adobe.rtc.pods.rosterClasses::UserItemRenderer/onMenuClick()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/rtc/pods/rosterClasses/UserItemRenderer.as:363]
Views
Replies
Total Likes
Hi,
I will run your example today and see why its not showing up participants in your case. Meanwhile, if you don't want menubuttons or headers inside the roster , you can turn them off. User _roster.showRoleHeaders = false and also _roster.showMenuButtons = false , when you create the roster.
I will check for the exception but you can try this out meanwhile.
Thanks
Hironmay Basu
Views
Replies
Total Likes
hironmay, i took this away:
_roster.itemRenderer = new ClassFactory(SomeItemRenderer);
away and it was fine ![]()
thanks for the tipoffs too.
Views
Replies
Total Likes