# removeChild requires two clicks?

**URL:** <https://forum.kirupa.com/t/removechild-requires-two-clicks/292268>\
**Category:** flash\
**Created:** [July 12, 2009, 1:13pm UTC](https://forum.kirupa.com/t/removechild-requires-two-clicks/292268 "2009-07-12T13:13:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![polyrhythmm](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@polyrhythmm](https://forum.kirupa.com/u/polyrhythmm)\
**Post date:** [July 12, 2009, 1:13pm UTC](https://forum.kirupa.com/t/removechild-requires-two-clicks/292268/1 "2009-07-12T13:13:10Z")

</div>

Hey, I’m making a pretty simple game, yesterday the removeChild function worked, but today its taking two clicks to remove the instance from the stage.

jack.addEventListener(MouseEvent.MOUSE\_DOWN, jackClicked);

function jackClicked(event:MouseEvent):void {

```
            trace("jack Clicked");
            event.target.parent.removeChild(event.target);

   }

```

}

I’ve tried heaps of different ways and nothing seems to work, even though its so simple.  
Even if I try

event.target.visible = false;

it still takes two clicks.

Is this a common bug?

Please help.

Polyrhythmm.
