# Collision only works with one clip?

**URL:** <https://forum.kirupa.com/t/collision-only-works-with-one-clip/315370>\
**Category:** flash\
**Created:** [October 24, 2010, 4:25pm UTC](https://forum.kirupa.com/t/collision-only-works-with-one-clip/315370 "2010-10-24T16:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wrinkliez](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wrinkliez](https://forum.kirupa.com/u/Wrinkliez)\
**Post date:** [October 24, 2010, 4:25pm UTC](https://forum.kirupa.com/t/collision-only-works-with-one-clip/315370/1 "2010-10-24T16:25:09Z")

</div>

Okay, I’m sure this is a noob problem. But I have a collision going on between two clips, clip A and clip B. I tried to copy and paste clip A, but then clip B would only interact with one of them… not both.

Is there a way to get this to work with both? I tried adding clip A to an array, and checking for a collision with the array with

for(var i:uint = 0; i \< TestArray.length; i++){  
if (A.hitTestObject(TestArray\*)){  
do something

but it still only works with one of the clips. Any ideas? Thanks guys.
