# Multidimensional Arrays?

**URL:** <https://forum.kirupa.com/t/multidimensional-arrays/304248>\
**Category:** flash\
**Created:** [February 4, 2010, 7:15am UTC](https://forum.kirupa.com/t/multidimensional-arrays/304248 "2010-02-04T07:15:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibbsie](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Dibbsie](https://forum.kirupa.com/u/Dibbsie)\
**Post date:** [February 4, 2010, 7:15am UTC](https://forum.kirupa.com/t/multidimensional-arrays/304248/1 "2010-02-04T07:15:48Z")

</div>

Hey,

I am new to flash programming and am trying to create an empty 2D array.

I have the Code:

```auto

var squareList:Array = new Array(new Array());
Init();
function Init():void
{
 var i:int, j:int;
 squareList = new Array(15); 
 for(i=0; i<15; i++) 
 {  
  squareList* = new Array(10);
  for(j=0; j<10; j++) 
  {
   squareList*[j] = null;
  }
 }
}
function CanMoveDown():Boolean 
{
 if( squareList[currentSquare.y - 1][currentSquare.x] == null )
 {
  return true;
 }
 return false;
}

```

The function CanMoveDown() is called on each tick but im getting the error:  
TypeError: Error #1010: A term is undefined and has no properties

I want the list to be empty but im not sure why i can not compare it to null.

Any suggestions? Im completely lost
