# Remove a StaticText-object

**URL:** <https://forum.kirupa.com/t/remove-a-statictext-object/330946>\
**Category:** flash\
**Created:** [April 15, 2013, 2:59am UTC](https://forum.kirupa.com/t/remove-a-statictext-object/330946 "2013-04-15T02:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [April 15, 2013, 2:59am UTC](https://forum.kirupa.com/t/remove-a-statictext-object/330946/1 "2013-04-15T02:59:43Z")

</div>

I am able to make my StaticText-object invisible by setting the visible option to false _(goes away)_,  
but I don’t seems to be able to remove it using removeChild.

This is how I access it:

```auto
var child:StaticText = container.getChildAt(i) as StaticText;

```

And what I want to do is to remove it completely, not just make it invisible. So I use this:

```auto
container.removeChild(child);

```

This gives no errors, but the text is still visible!  
I tried removing other stuff from the container, like Sprites, and they all goes away.  
It is just the StaticText-object that won’t go away.

_Any help really appreciated!  
~Tompa_
