# addChild or maybe swapChildren question

**URL:** https://forum.kirupa.com/t/addchild-or-maybe-swapchildren-question/292729
**Category:** flash
**Created:** [July 18, 2009, 1:56am UTC](https://forum.kirupa.com/t/addchild-or-maybe-swapchildren-question/292729 "2009-07-18T01:56:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anakadote](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/anakadote/32/2119_2.png) [@anakadote](https://forum.kirupa.com/u/anakadote)
#### Post date: [July 18, 2009, 1:56am UTC](https://forum.kirupa.com/t/addchild-or-maybe-swapchildren-question/292729/1 "2009-07-18T01:56:09Z")

</div>

So I’ve loaded an image into a movieclip that spans across two frames. When I tell the containing movieclip to gotoAndStop(2) the image disappears. Shouldn’t it still be there since the movieclip I’m loading it into spans both frames?

```auto
var loader:Loader = new Loader();
loader.load(new URLRequest(filename));  
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadImageIntoContainer);

function onLoadImageIntoContainer(evt:Event):void {
    card_container_mc.photo_container_mc.addChild(evt.target.content);
    evt.target.removeEventListener(Event.COMPLETE, onLoadImageIntoContainer);
}

```

Then if I do card\_container\_mc.gotoAndStop(2); the image disappears. Remember that the movieclip “photo\_container\_mc” spans two frames inside of “card\_container\_mc”.

Thanks!
