Hello,I have a simple chat application and I want the users that enter
to be promoted to owners or publishers, but not with the autopromote
feature, with the UserRoles class. I'm not much of a coder. i'm a
designer and I tried to write it myself but nothing worked, could you
help me please ? Here is the code of my app :
import mx.managers.PopUpManager; import mx.controls.SWFLoader; import
com.adobe.rtc.messaging.UserRoles; import
com.adobe.rtc.sharedModel.CollectionNode; protected function
showLogin():void { var login:LoginDialog = new LoginDialog();
login.connectSession = cSession; PopUpManager.addPopUp(login, this);
PopUpManager.centerPopUp(login); } And the
LoginDialog: import mx.managers.PopUpManager;
import com.adobe.rtc.session.IConnectSession; import
com.adobe.rtc.messaging.UserRoles; [Bindable] public var
connectSession:IConnectSession; protected function login():void {
connectSession.authenticator.userName = userNameField.text;
connectSession.login(); PopUpManager.removePopUp(this); }
Thank you !