Hi there,
I want to remove two movieclips at once, with one function but I can not get it to work. Some help would be appreciated!
function createLightBox(){
var ol:overlay = new overlay();
ol.scaleX = stage.width;
ol.scaleY = stage.height;
addChild(ol);
ol.addEventListener(MouseEvent.CLICK, removeLightBox);
var lb:lbContent = new lbContent();
ol.stage.addChild(lb);
lb.x = 800;
lb.y = 350;
}
function removeLightBox(e:MouseEvent):void{
var targetmc = e.target;
removeChild(targetmc);
}
With the above code I am only able to remove the ol movieclip, I need to remove the lb movieclip as well. Does anyone know how to do this?