Send text using components


hello all,  have small issue. have composed message in text input component , transferred on display in text area. issue message typed still visible in text input after sent text area.  prefer if message removed instantly. have made numerous changes fix altering pieces code nothing seems work sadly . anyway, code below if know of way fix great thanks!                                               btn_send.addeventlistener(mouseevent.click, dosend, false, 0, true);                                                                                       function dosend($e:event):void{                                                                                                                                                                  if(input_txt.text != ""){                                                                                                                                                            t_area.appendtext(input_txt.text+"\n");                                                                                                                 t_area.verticalscrollposition = t_area.maxverticalscrollposition;                                                                                            input_txt.text = "";                                                                                                                                                                      input_txt.setfocus();

whoops sorry messy code



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account