# TARGET.hitTestObject and mouse events

**URL:** <https://forum.kirupa.com/t/target-hittestobject-and-mouse-events/272755>\
**Category:** flash\
**Created:** [October 8, 2008, 8:36am UTC](https://forum.kirupa.com/t/target-hittestobject-and-mouse-events/272755 "2008-10-08T08:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [October 8, 2008, 8:36am UTC](https://forum.kirupa.com/t/target-hittestobject-and-mouse-events/272755/1 "2008-10-08T08:36:53Z")

</div>

Hi All  
could some one help me out?  
What I am trying to do is set up a hit test for two objects. Unfortunatly they need to be inside emblem (movieclip).  
Unfortunatly the het test is not working neither is the else.  
Probably due to my as3 lepperacy.

\*\*  
thank to any one who takes th time to look\*\*

```auto
function dropIt(event:MouseEvent):void {
	event.target.stopDrag();
	var TARGET:MovieClip = MovieClip(event.target.name);
	var myTargetName:MovieClip = MovieClip("emblem." + event.target.name);
if (TARGET.hitTestObject(myTargetName)){
		reply_txt.text = "Good Job!";
		
	} else {
		reply_txt.text = "Try Again!";
		
	}
	
}

```

brndn
