         
         // TODO EGeorgie: use vector
         var layoutItemArray:Array = new Array();
+        var layoutItem:ILayoutItem;
         var count:uint = layoutTarget.numLayoutItems;
         var totalCount:uint = count; // How many items will be laid out
         for (var i:int = 0; i < count; i++)
         {
-            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
+            layoutItem = layoutTarget.getLayoutItemAt(i);
             if (!layoutItem || !layoutItem.includeInLayout)
             {
             	totalCount--;

    }
    

    public function measure():void
    {
    	var layoutTarget:GroupBase = target;
        if (!layoutTarget)

/**
 *  Documentation is not currently available.
 */
public class HorizontalLayout extends LayoutBase
{
    include "../core/Version.as";

