# Duplicate movie clip hit testing another duplicate movie clip

**URL:** <https://forum.kirupa.com/t/duplicate-movie-clip-hit-testing-another-duplicate-movie-clip/329401>\
**Category:** Uncategorized\
**Created:** [August 23, 2012, 4:42am UTC](https://forum.kirupa.com/t/duplicate-movie-clip-hit-testing-another-duplicate-movie-clip/329401 "2012-08-23T04:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kornman245](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@kornman245](https://forum.kirupa.com/u/kornman245)\
**Post date:** [August 23, 2012, 4:42am UTC](https://forum.kirupa.com/t/duplicate-movie-clip-hit-testing-another-duplicate-movie-clip/329401/1 "2012-08-23T04:42:40Z")

</div>

I have 2 separate movie clips that are being duplicated and I am trying to figure out how to hitTest between the 2. Here is the code I have set up right now:

1st MC dupe:

```auto
_root.MC.duplicateMovieClip("DMC"+_root.count, _root.count);

```

2nd MC dupe:

```auto
_root.SC.duplicateMovieClip("DSC"+_root.count2, _root.count2);

```

2nd MC’s hitTest:

```auto
onEnterFrame = function() {
	for (var i=0; i<count; i++){
 		if (this.hitTest(_root["DMC" + i])){
			  this.play();
		}
	}
}

```

This does not work! ☹ Am I way off? Close?

Help is greatly appreciated!
