simple for loop not running
        Posted  
        
            by NativeCoder
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by NativeCoder
        
        
        
        Published on 2010-06-12T10:40:15Z
        Indexed on 
            2010/06/12
            10:53 UTC
        
        
        Read the original article
        Hit count: 177
        
actionscript-3
    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
© Stack Overflow or respective owner