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
Post a Comment