# Remove MovieClip

**URL:** <https://forum.kirupa.com/t/remove-movieclip/322369>\
**Category:** Uncategorized\
**Created:** [May 19, 2011, 11:35am UTC](https://forum.kirupa.com/t/remove-movieclip/322369 "2011-05-19T11:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnieb](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vinnieb](https://forum.kirupa.com/u/vinnieb)\
**Post date:** [May 19, 2011, 11:35am UTC](https://forum.kirupa.com/t/remove-movieclip/322369/1 "2011-05-19T11:35:30Z")

</div>

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!

```auto

    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?
