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.