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

rocifier
rocifier
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
1

Discussions

Discussions
0

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by rocifier
Customize the badges you want to showcase on your profile
Re: Can LCCS do this? - Adobe LiveCycle 18-11-2009
Yes, LCCS does provide private one-on-one chat, in your nodeConfiguration set allowPrivateMessages to true and specify a recipientID. import com.adobe.rtc.pods.simpleChatClasses.ChatMessageDescriptor; import com.adobe.rtc.events.ChatEvent; import com.adobe.rtc.pods.simpleChatClasses.SimpleChatModel; // This simple example just shows how this shared model can be made easily bindable for MXML. // See SimpleChatModel for details. [Bindable] public var chatModel:SimpleChatModel; protected function buildModel():void { // Create the model: just calling the constructor won't create the collection node or pass the messages. // Call subscribe and give it a shared ID while creating the model. // The shared ID becomes the name of the collection node. chatModel = new SimpleChatModel(); chatModel.sharedID = "myChat_SimpleChatModel"; chatModel.allowPrivateChat = true; chatModel.subscribe(); chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg); this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke); } protected function submitChat(str:Stringvoid { var cmd:ChatMessageDescriptor = new ChatMessageDescriptor(); cmd.displayName = cSession.userManager.getUserDescriptor(cSession.userManager.myUserID).displayName; cmd.msg = str; cmd.recipient = "<pass id of the person you are sending private message to>" chatModel.sendMessage(cmd); chat_mesg_input.text = ""; } protected function clearChat():void { chat_mesg_area.text = ""; chatModel.clear(); } protected function onChatMsg(p_evt:ChatEvent):void { if(p_evt.message != null && p_evt.message.msg != null && p_evt.message.displayName != null) chat_mesg_area.text += "\r\n" + p_evt.message.displayName + ": " + p_evt.message.msg; else chat_mesg_area.text = ""; } protected function onKeyStroke(p_evt:KeyboardEvent):void { if(p_evt.keyCode == Keyboard.ENTER) { submitChat(chat_mesg_input.text); } } private function doLogin() : void { auth.userName = username.text; auth.password = password.text; cSession.login(); loginForm.enabled = false; } private function onAuthSuccess( event : Event ) : void { vs.selectedIndex = 1; buildModel(); } private function onAuthfail( event : Event ) : void { loginForm.enabled = true; }

Views

135

Likes

0

Replies

0