# Smart HitTest as

**URL:** <https://forum.kirupa.com/t/smart-hittest-as/181518>\
**Category:** Uncategorized\
**Created:** [March 9, 2006, 11:49pm UTC](https://forum.kirupa.com/t/smart-hittest-as/181518 "2006-03-09T23:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unchew](https://avatars.discourse-cdn.com/v4/letter/u/7ba0ec/32.png) [@unchew](https://forum.kirupa.com/u/unchew)\
**Post date:** [March 9, 2006, 11:49pm UTC](https://forum.kirupa.com/t/smart-hittest-as/181518/1 "2006-03-09T23:49:56Z")

</div>

Hi, I’m duplicating 2 different movie clips “rock” and “enemy”. I want to check when they collide… but the problem with normal hittesting is that I can’t get a target because duplicated movieclips are named rock1, rock2, rock3, etc… so it keeps changing and those instance names arent detected by the script. So what can I do? is there a way to make all the duplicted movieclips have the same instance name?
