# \[MX\] hitTest with multiple clips

**URL:** https://forum.kirupa.com/t/mx-hittest-with-multiple-clips/100821
**Category:** Uncategorized
**Created:** [February 2, 2004, 10:11pm UTC](https://forum.kirupa.com/t/mx-hittest-with-multiple-clips/100821 "2004-02-02T22:11:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Elbudster](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@Elbudster](https://forum.kirupa.com/u/Elbudster)
#### Post date: [February 2, 2004, 10:11pm UTC](https://forum.kirupa.com/t/mx-hittest-with-multiple-clips/100821/1 "2004-02-02T22:11:58Z")

</div>

Hello :nerd:

For example, say I have 3 movie clips… I want the easiest way to do a hitTest with them… The easiest way I thought of was this but it doesn’t work :puzzle:

[AS]  
onClipEvent (load) {  
mouse.hide();  
walls = \_root.one or \_root.two or \_root.three;  
}  
onClipEvent (enterFrame) {  
this.\_x = \_root.\_xmouse;  
this.\_y = \_root.\_ymouse;  
if (this, hitTest(walls)) {  
this.\_x = 10;  
this.\_y = 10;  
}  
}  
[/AS]

It’s just a quick example of what im trying to do. one, two, and three are movieclips. Is the way I am trying possible? Or is there some easier way I could go about doing this besides writing it out for each movie clip?
