Hello All, I have a small issue in Flash. I have composed a message in the text input component. When I click the button the message is transferred over and displayed in the text area. That’s works fine!
However, I have small problem the message is still visible in the text input component. I want it to be removed as soon as I click the button.
I have tried many times to alter the code but the problem still persists.
If you can you help that be GREAT!!!
btn_Send.addEventListener(MouseEvent.CLICK, doSend, false, 0, true);
function doSend($e:Event):void{
if(txt_input.text != ""){
txt_area.appendText(txt_input.text+"
");
txt_area.verticalScrollPosition = txt_area.maxVerticalScrollPosition;
txt_input.text = “”;
}
txt_input.setFocus();