             w = child.getExplicitOrMeasuredWidth();
         }
 
-        //If we are not evaluating top, bottom, and verticalCenter
-        //relative to the parent container edges, we need to match
-        //the row specified in the constraint expression with the
-        //actual ConstraintRow instance so later we can determine how
-        //much space the control has to live in. 
-        if (!parentBoundariesTB && IConstraintLayout(target).constraintRows.length > 0)
+        // If we are not evaluating top, bottom, and verticalCenter
+        // relative to the parent container edges, we need to match
+        // the row specified in the constraint expression with the
+        // actual ConstraintRow instance so later we can determine how
+        // much space the control has to live in. 
+		length = IConstraintLayout(target).constraintRows.length;
+        if (!parentBoundariesTB && length > 0)
         {
             var matchTop:Boolean = topBoundary ? true : false;
             var matchBottom:Boolean = bottomBoundary ? true : false;
             var matchVC:Boolean = vcBoundary ? true : false;
             var matchBaseline:Boolean = baselineBoundary ? true : false;
-            
-            for (i = 0; i < IConstraintLayout(target).constraintRows.length; i++)
+            length = IConstraintLayout(target).constraintRows.length;
+            for (i = 0; i < length; i++)
             {       
                 var row:ConstraintRow = ConstraintRow(IConstraintLayout(target).constraintRows[i]);
                 if (matchTop)

                throw new ConstraintError(message);
            }
        }
        else if (!parentBoundariesLR)
        {
            //The left, right or horizontalCenter style has been set to
            //a non-parent region, but no columns were declared 
            message = resourceManager.getString(
                "containers", "noColumnsFound");
            throw new ConstraintError(message);
        }
        
        //The width of the region which
        //the control will live in. 
        availableWidth = Math.round(rightHolder - leftHolder);

        // If a percentage size is specified for a child,

        var verticalCenter:Number = childInfo.vc;
        var baseline:Number = childInfo.baseline;

        // Variables to track the boundaries from which
        // the offsets are calculated from. If null, the 
        // boundary is the parent container edge. 
        var leftBoundary:String = childInfo.leftBoundary;
        var rightBoundary:String = childInfo.rightBoundary;
        var hcBoundary:String = childInfo.hcBoundary;
