# addChild doesn't behave as wanted

**URL:** https://forum.kirupa.com/t/addchild-doesnt-behave-as-wanted/277635
**Category:** Uncategorized
**Created:** [December 15, 2008, 8:21am UTC](https://forum.kirupa.com/t/addchild-doesnt-behave-as-wanted/277635 "2008-12-15T08:21:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Wampiro\_UHA](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@Wampiro\_UHA](https://forum.kirupa.com/u/Wampiro_UHA)
#### Post date: [December 15, 2008, 8:21am UTC](https://forum.kirupa.com/t/addchild-doesnt-behave-as-wanted/277635/1 "2008-12-15T08:21:46Z")

</div>

I’m new to AS3. I’m trying to make a basic menu which loads MC’s into another MC.  
My problem is that when using addChild it just add the MC into the Container (called “Content”) and doesn’t remove existing added children. Looks weird.

Here is my code so far: [http://pastie.org/339392](http://pastie.org/339392)

If you have any other suggestion, besides a solution to my problem, everything is VERY welcome as I would like to learn good coding 🙂
