# AS3 Arrays

**URL:** <https://forum.kirupa.com/t/as3-arrays/324704>\
**Category:** flash\
**Created:** [September 4, 2011, 12:01pm UTC](https://forum.kirupa.com/t/as3-arrays/324704 "2011-09-04T12:01:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab1980](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ab1980](https://forum.kirupa.com/u/ab1980)\
**Post date:** [September 4, 2011, 12:01pm UTC](https://forum.kirupa.com/t/as3-arrays/324704/1 "2011-09-04T12:01:15Z")

</div>

Hi

This is my first post here :bucktooth: i’ve been visiting the forums for tips while making my flash games… Now i’ve been struggling with one part-

Basically, i have 2 arrays containing object1 and object2 .

ArrayObject1 type are moving  
ArrayObject2 type are stationery

When there is a hitTest between the 2 arrays, Object2 gets the same vx,vy as Object1 and they start moving together.\*

(I need to keep a track of which instance of Object1 is in contact with which instance of Object2)\*

When lets say a BulletObj hitTest Object1, then Object1 is removed from stage (array is spliced) and Object2 should stop moving.  
\*  
(But i don’t know how to know the right instance of ArrayObject2 to stop)\*  
Any help would be great

Thanks
