9 Replies Latest reply on Jan 28, 2010 10:43 AM by Francisc

    I want HBox with scroll!

    Francisc Level 3

      Hello!

       

      I use this code to create an HBox control and `populate` it.

       

      var hBox:HBox=new HBox();

      hBox.percentWidth=100;

      for(var i:uint=0;i<10;i++)

      {

           var linkButton:LinkButton=new LinkButton();

           linkButton.label=String(i);

           hBox.addChild(linkButton);

      }

      addChild(hBox);

       

       

      All works fine except the HBox is too long to fit all of its contents in its own container and I want it to have a Horizontal Scrollbar. If I explicitly set HorizontalScrollPolicy to on, it will appear but not function.

       

      How can I do this please?

       

      Thank you!