# Using the Components

**URL:** <https://forum.kirupa.com/t/using-the-components/331076>\
**Category:** flash\
**Created:** [May 9, 2013, 11:05pm UTC](https://forum.kirupa.com/t/using-the-components/331076 "2013-05-09T23:05:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickyhay](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Post date:** [May 9, 2013, 11:05pm UTC](https://forum.kirupa.com/t/using-the-components/331076/1 "2013-05-09T23:05:49Z")

</div>

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();
