Hy everyone,
Im trying to remove a swf that i import to the stage, but it is not working:
Im doing like this:
function btn_cima_3call(clickEvent:MouseEvent):void{
page = 5;
esconder();
content.gotoAndStop(page);
ld.load(new URLRequest("trabalhosV0.swf"));
ld.x = 0;
ld.y = 100;
addChild(ld);
}
So when 1 button is pressed this swf is imported to the stage. but im now trying to remove this when another button is pressed and it isnt working, dont know why.
simple like this:
function btn1call(clickEvent:MouseEvent):void{
removeChild(ld);
page = 1;
content.gotoAndStop(page);}
Hope u guys can help me on this