Hi all,

I have a very confusing conundrum and am not even sure how to word it in the subject line. I have a game where "targets" hide behind trees and when they pop out from behind, you click them and they are destroyed. For some reason though, when you click the tree they are hiding behind, they still get destroyed. I want them to be safe from the user clicks when hiding. Here is a sample of the code I am using:

Code:
stage.addEventListener(MouseEvent.CLICK, onClickHandler, false, 0, true);
function onClickHandler(event:MouseEvent):void
{
    mousePositionX = stage.mouseX;
    mousePositionY = stage.mouseY;
    var bullet:MovieClip = createBullet();
    TweenMax.to(bullet, .5, {x:mousePositionX, y:mousePositionY, onComplete:removeSnowball});
	function removeSnowball():void {
		var poof:Poof = new Poof();
		if(bullet.hitTestObject(target1)) {
			poof.x = bullet.x;
			poof.y = bullet.y;
			addChild(poof);
			target1.gotoAndPlay(21);
			removeChild(bullet);
			playerScore++; //increase playerScore by 1
			updateTextFields();
		} else {
		removeChild(bullet);
		bullet = null;
		}
	}
}
I tried adding an else if statement like so:
Code:
else if(bullet.hitTestObject(backtrees)) {
			poof.x = bullet.x;
			poof.y = bullet.y;
			addChild(poof);
			removeChild(bullet);
}
but that did nothing as well. As you can see, it is not the click of the user that causes the target to disappear, but the hittestobject that causes it to disappear. Would any one have an idea on what is causing this? Thank you so so much in advance!!!