# hitTest

**URL:** <https://forum.kirupa.com/t/hittest/173662>\
**Category:** Uncategorized\
**Created:** [December 28, 2005, 1:38pm UTC](https://forum.kirupa.com/t/hittest/173662 "2005-12-28T13:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woopsedoo](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@woopsedoo](https://forum.kirupa.com/u/woopsedoo)\
**Post date:** [December 28, 2005, 1:38pm UTC](https://forum.kirupa.com/t/hittest/173662/1 "2005-12-28T13:38:56Z")

</div>

i am using as inside a movie clip for a hit test but t is not working

```auto

onEnterFrame = function () {
 if ("../char".hitTest("../rbul" add shotname)) {
  setProperty("../rbul" add shotname, _x, 242348);
  tellTarget ("../health") {
   nextFrame();
   nextFrame();
  }
 }
};

```

the “…/rbul” add shotname is a duplicate of a movie clip that i cant change in order to get the game working  
does anybody have any suggestions on what i should or could do  
please reply  
thank you in advance
