# Hittest on ANY movie clip starting with xx

**URL:** https://forum.kirupa.com/t/hittest-on-any-movie-clip-starting-with-xx/130401
**Category:** Uncategorized
**Created:** [December 4, 2004, 1:41pm UTC](https://forum.kirupa.com/t/hittest-on-any-movie-clip-starting-with-xx/130401 "2004-12-04T13:41:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![EviLudy](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@EviLudy](https://forum.kirupa.com/u/EviLudy)
#### Post date: [December 4, 2004, 1:41pm UTC](https://forum.kirupa.com/t/hittest-on-any-movie-clip-starting-with-xx/130401/1 "2004-12-04T13:41:52Z")

</div>

Ok, So I need help at this.

I have this script to duplicate movieclips:

\*\* \_root.duplinumblue += 1;  
\_root.bs.duplicateMovieClip(“bs”+\_root.duplinumblue, \_root.duplinumblue);\*\*

Now You’ll be getting all sorts of movieclips like bs1, bs2, bs3, bs4, bs5, bs6 and so on.

Now I want to make a hittest script like this:

\*\*if(this.hitTest(\_root.bs1) OR this.hitTest(\_root.bs2) OR this.hitTest(\_root.bs3) ) {  
//Actions  
}  
\*\*  
But that would only do it for bs1, 2 and 3, but I want it for ALL, which will reach into thousands of movieclips if a lot are duplicated, how would I do such a thing in a short line of code and NOT using a lot of OR’s
