simple for loop not running
- by NativeCoder
for ( var i:int = 0 ; i < 1; i++)
{
for ( var j:int = 0 ; j < 1; j++)
{
if (shape[j][i] == 0 )
{
pencil.graphics.beginFill(0);
pencil.graphics.drawRect(10,10,5,5);
pencil.graphics.endFill();
}
}
}
i am trying to run this code where shape is an array 2*2
gives an error
ReferenceError: Error #1069: Property 0 not found on Number and there is no default value.
at Main()
need help