             recentNode = rowList.first;
             startY = recentNode.rowIndex * (defaultRowHeight + rowGap);
         }
-        
-        var index:int;
         
         // if we are already at the right row, then use the index.
         if (isYInRow(y, startY, recentNode))

{
import flash.geom.Rectangle;

import mx.events.CollectionEvent;
import mx.events.CollectionEventKind;
import mx.collections.IList;

public class GridDimensions 
{

        else
            index = getNextRowIndexAt(y, recentNode, startY);
        
        return index < _rowCount ? index : -1;
    }
    
    /**
