# Remove TextArea component with Actionscript?

**URL:** https://forum.kirupa.com/t/remove-textarea-component-with-actionscript/196249
**Category:** flash
**Created:** [August 7, 2006, 5:07am UTC](https://forum.kirupa.com/t/remove-textarea-component-with-actionscript/196249 "2006-08-07T05:07:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Fingers](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Fingers](https://forum.kirupa.com/u/Fingers)
#### Post date: [August 7, 2006, 5:07am UTC](https://forum.kirupa.com/t/remove-textarea-component-with-actionscript/196249/1 "2006-08-07T05:07:43Z")

</div>

I’ve used something like…

```auto

this.createClassObject(mx.controls.TextArea, "tA"+ntA, ntA);

```

… to attach a TextArea component to the stage. Now I want to remove it with a button onRelease event, something like…

```auto
btnRemove_btn.onRelease = function(){
// this._parent["tA"+ntA].removeClassObject(); ???
}

```

…which obviously doesn’t work. Perhaps the answer is in the manual, but I tried and tried and just couldn’t understand. Could someone please explain how to do this?

Also,while I know how to embed fonts inside a textInput field, I’m really stumped about how to do it with a TextArea component that’s been created like the one above. Do I have to use a stylesheet?

~Fingers~
