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

enter vs. ctrl enter

daminee80
Level 3
Level 3

I've noticed that in simplechat you must do a ctrl enter combination to get the same effect as clicking on the send key.  Pressing the enter key does not clear the text area.  Is there anyway to chage this default?

4 Replies
Hironmay
Level 10
Level 10

Hi,

I found it very weird that this behavior happens even though the function call on click and pressing enter remains the same. I did some tweaking and one thing you can do to let the click and enter behave in same way is to add a validate statement in the sendNewMessage() function of SimpleChat.

So, if you are linking to the source, you can add this line

_newMessage.validateNow();

after _newMessage.htmlText = ""; . This will make the behavior similar.

Thanks

Regards

Hironmay Basu

daminee80
Level 3
Level 3

Again, thanks for the quick response.  I am using the flash 10 API.  Since there is not source for that yet.  I either have to wait until the source is out for it, or regress back to not using RTMFP, which I don't think I would want to do. 

daminee80
Level 3
Level 3

public function set protocol(pcol:String):void

{

            com.adobe.rtc.session.managers.SessionManagerAdobeHostedServices(session_internal::sessionManager).protocol = pcol;         

}

I added this line to AdobeHSAuthenticator.as

It seems to work now with the Flash 9 API and RTMFP

Hironmay
Level 10
Level 10

Hi,

I understand your problem. I will try to get the fix in the next drop of SDK.

Thanks

Hironmay Basu