             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))

        if (y < 0)
            return -1;
        
        if (!isNaN(fixedRowHeight))
            return y / (fixedRowHeight + rowGap);
        
        if (rowList.length == 0)
            return y / (defaultRowHeight + rowGap);
        
        if (y == 0)
            return 0;
        
        // initialize first node.
        if (!recentNode)

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