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:
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:
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