removeChild movieclip not working
Hi.
I used this code to add a moveclip dymanically.
var Tania = new lib.popup_Tania();
Tania.x = 150;
Tania.y = 150;
exportRoot.addChild(Tania);
I try to remove the mc with the following code with the creatjs.Ticker.on block of code but it doesn't work.
function nextFunction() {
//exportRoot.removeChild(Tania);
//removeChild(exportRoot.Tania);
createjs.Ticker.on("tick", function(e)
{
exportRoot.removeChild(exportRoot.Tania);
});
this.btn.removeEventListener("click", clickHandler);
this.nextButton.removeEventListener("click", nextHandler);
this.gotoAndPlay("ex2");
}
