# Reference duplicated movie clips

**URL:** <https://forum.kirupa.com/t/reference-duplicated-movie-clips/223760>\
**Category:** Uncategorized\
**Created:** [April 25, 2007, 3:28pm UTC](https://forum.kirupa.com/t/reference-duplicated-movie-clips/223760 "2007-04-25T15:28:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seraphimglobal](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@seraphimglobal](https://forum.kirupa.com/u/seraphimglobal)\
**Post date:** [April 25, 2007, 3:28pm UTC](https://forum.kirupa.com/t/reference-duplicated-movie-clips/223760/1 "2007-04-25T15:28:39Z")

</div>

I am trying to create a hitTest between two duplicated objects. The code below is on a bullet. Bullets hit “bad” MCs that are called bad + x (X being a number from 22 - 40). I can’t get it to work. I belive that I am not referencing the duplicated MCs correctly. Any advice or suggestions you could provide would be most helpful.

```auto

for (x=22; x<42; x++) {
        if (this.hitTest("_root.bad" + x)) {
            trace("DEAD");
        }
    }
}

```

Thank You!
