             return 0;
             
         if (index >= _length)
-            throw new Error("invalid index");            
+            throw new Error(resourceManager.getString("layout", "invalidIndex"));            
 
         var distance:Number = 0;
         var blockIndex:uint = index >> BLOCK_SHIFT;

    public function setMajorSize(index:uint, value:Number):void
    {
        if (index >= length)
            throw new Error("invalid index");
            
        var blockIndex:uint = index >> BLOCK_SHIFT;
        var block:Block = blockTable[blockIndex];

import flash.geom.Rectangle;
import mx.graphics.Rect;
import mx.core.ILayoutElement;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;    

//--------------------------------------
//  Other metadata
//--------------------------------------

[ResourceBundle("layout")]
    
/**
 *  A sparse array of "major dimension" sizes that represent 
