var myContainerMC:MovieClip = new MyContainerMC(); addChild(myContainerMC); // myButton would have to be an instance on the stage... myButton.addEventListener(MouseEvent.CLICK, myButtonClick, false, 0, true); function myButtonClick(e:MouseEvent):void { // if the container is not empty (i.e. if you have previously // loaded another MC), the container's contents will be cleared. clearContainer(); // create a new instance of your movieclip // and add it to the container var myMC:MovieClip = new MyTestMC(); myContainerMC.addChild(myMC); }