 		
 		for (i = 0; i < n; i++)
 		{
-			var child:IUIComponent = target.getChildAt(i) as IUIComponent;
+			var child:IUIComponent = target.getLayoutChildAt(i);
 			var childConstraints:LayoutConstraints = getLayoutConstraints(child);
 		
 			if (!child.includeInLayout)

import mx.styles.StyleManager;
import flash.utils.Dictionary;

[ExcludeClass]

[ResourceBundle("containers")]

		// these override x, y, width, and height if specified.
		for (i = 0; i < n; i++)
		{
			child = target.getLayoutChildAt(i);
			applyAnchorStylesDuringUpdateDisplayList(viewableWidth, viewableHeight, child);
		}
	}
