# addChild MC dissapears on stop();

**URL:** <https://forum.kirupa.com/t/addchild-mc-dissapears-on-stop/265005>\
**Category:** flash\
**Created:** [July 2, 2008, 9:46pm UTC](https://forum.kirupa.com/t/addchild-mc-dissapears-on-stop/265005 "2008-07-02T21:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jrockwell3](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Jrockwell3](https://forum.kirupa.com/u/Jrockwell3)\
**Post date:** [July 2, 2008, 9:46pm UTC](https://forum.kirupa.com/t/addchild-mc-dissapears-on-stop/265005/1 "2008-07-02T21:46:51Z")

</div>

I’m adding a movieclip from my library to a movieclip on stage that has a motion tween. The added movieclip needs to be part of the tween. When the tween is complete I have stop(); to keep it from repeating, however, when the timeline reaches the stop(); my added movie clip dissapears.

```auto
import flash.display.DisplayObjectContainer;
import flash.display.Sprite;
import flash.utils.getDefinitionByName;

var myClassInstance = new (getDefinitionByName("MyClass") as Class);

function loadHomePage():void{
    paper.blankSheet1.addChildAt(myClassInstance, 1);
    paper.gotoAndPlay("s1");
}
    
loadHomePage();

```
