# Question About arrays

**URL:** <https://forum.kirupa.com/t/question-about-arrays/329428>\
**Category:** flash\
**Created:** [August 28, 2012, 12:58am UTC](https://forum.kirupa.com/t/question-about-arrays/329428 "2012-08-28T00:58:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnowFF13](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@SnowFF13](https://forum.kirupa.com/u/SnowFF13)\
**Post date:** [August 28, 2012, 12:58am UTC](https://forum.kirupa.com/t/question-about-arrays/329428/1 "2012-08-28T00:58:53Z")

</div>

Yeah umm i got a question about arrays.  
i made a new array called floor\_a

```auto
floor_a = new Array();

```

then i assigned a object to a array

```auto
var f = new floor(); floor_a.push(f); addChild(f);

```

i tried to make it so when my player hits the floor it stops his gravity like in a smb game or sonic. So heres what i put in my player class

```auto
if (Main.floor_a.hitTestObject(x,y,true)) {

			}

```

i got this error apparently:  
TypeError: Error #1006: hitTestObject is not a function. at Clip/active()

so how do i fix this?
