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.
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();