  */
 public class HGroup extends Group
 {
+	include "../core/Version.as";
 
     /**
      *  Initializes the layout property to an instance of HorizontalLayout.
      * 
+     *  Resetting the layout property or setting its properties directly
+     *  is not supported.
+     * 
      *  @see flex.layout.HorizontalLayout
+     *  @see flex.component.VGroup
      */  
     public function HGroup():void
     {
         super();
-        super.layout = new HorizontalLayout();
+        var hl:HorizontalLayout = new HorizontalLayout();
+        hl.addEventListener("indexInViewChanged", redispatchHandler);
+        hl.addEventListener("propertyChange", redispatchHandler);
+        layout = hl;        
     }
     
     private function get horizontalLayout():HorizontalLayout

    //  firstIndexInView
    //----------------------------------
 
    /**
     * @copy flex.layout.HorizontalLayout#firstIndexInView
     */

    public function get lastIndexInView():int
    {
        return horizontalLayout.lastIndexInView;
    } 
    
    //--------------------------------------------------------------------------
    //
    //  Event Handlers
    //
    //--------------------------------------------------------------------------
    
    private function redispatchHandler(event:Event):void
    {
        dispatchEvent(event);
    }      
}

}