3 Replies Latest reply on Jan 22, 2010 9:01 AM by Gregory Lafrance

    label adding problem

    venkateshk Level 1

      <mx:HBox id="hb2" width="250" height="60" x="40" y="92" horizontalGap="0" creationComplete="cc();"/>

      private function cc():void{

      for(var i:int=25,j:int=1;i<=hb1.width;i=i+25,j++)
                      {
                          box = new Box();
                          box.width=25;
                          box.height = hb1.height;
                          box.setStyle("borderStyle","solid");
                          box.setStyle("borderColor","black");
                          box.setStyle("verticalAlign","middle");
                          box.setStyle("horizontalAlign","center");
                          hb1.addChild(box);
                          lab = new Label();
                          lab.text = "A"+j;
                          box.addChild(lab);
                      }

      it's adding the boxes to HBox and inturn box contains the label inside it

      it's working fine

      but the problem is that when I provide rotation property for the hb2 i am not getting the labels

      <mx:HBox id="hb2" width="250" height="60" x="40" y="92" horizontalGap="0" rotation="40" creationComplete="cc();"/>

      please................ help me