# AS3 Vector Array Collisions

**URL:** <https://forum.kirupa.com/t/as3-vector-array-collisions/326100>\
**Category:** flash\
**Created:** [November 22, 2011, 11:25pm UTC](https://forum.kirupa.com/t/as3-vector-array-collisions/326100 "2011-11-22T23:25:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skulmuk](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Skulmuk](https://forum.kirupa.com/u/Skulmuk)\
**Post date:** [November 22, 2011, 11:25pm UTC](https://forum.kirupa.com/t/as3-vector-array-collisions/326100/1 "2011-11-22T23:25:16Z")

</div>

Hi guys,

First off, let me introduce myself. I’m new here as a member, but Kirupa is one site I oft have visited as a Guest when in dire need of Flash advice, so I know I’m in the right place!

I have a very simple question. I have a Vector array of a custom type (“Barrier”), which holds the information of a number of solid objects within my game. I’m trying to do a hit test on this array, from within another class (namely my bullet class). The parameters are picked up by IntelliSense fine, and I get no compiler errors when I build my SWF. The only problem I’m facing is that the bullet just passes through the solid rather than destroy itself. Is there any way I can fix this? Everything is added to the stage through ActionScript, so it can’t be just a case of adding instance names, can it?

Thanks,  
Skul
