# addChild - onComplete?

**URL:** https://forum.kirupa.com/t/addchild-oncomplete/326689
**Category:** flash
**Created:** [January 5, 2012, 2:31pm UTC](https://forum.kirupa.com/t/addchild-oncomplete/326689 "2012-01-05T14:31:34Z")
**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: [January 5, 2012, 2:31pm UTC](https://forum.kirupa.com/t/addchild-oncomplete/326689/1 "2012-01-05T14:31:34Z")

</div>

Hello!  
I’m making a program where you can design you own room (walls and floor).  
My problem is that everytime I change the floor/wall, it disappears for about 1 sec _(Because the picture I’m adding to the floor/wall is 2000x2000)_  
Here is the code:

```auto
mc.addChild(loader);
mc.removeChildAt(0);

```

I’m searching for a solution to make the \*removeChildAt-\*function to be executed just after the _addChild_-function is complete, so there will be no delay between the old and the new texture.  
I’ve already tried **ADDED\_TO\_STAGE** with no luck.

_Thanks in advance,  
~Tompa_
