how to align controls left, center and right

<mx:Grid width="100%" >
     <mx:GridRow width="100%" >
          <mx:GridItem horizontalAlign="left"  width="33%" >
               <s:Label text="Left" />
          </mx:GridItem>

          <mx:GridItem horizontalAlign="center"  width="33%" >
               <s:Label text="center" />
          </mx:GridItem>

          <mx:GridItem horizontalAlign="right"  width="34%" >
               <s:Label text="Right" />
          </mx:GridItem>
     </mx:GridRow>

</mx:Grid>

source

Comments are closed.