1 Reply Latest reply on Oct 14, 2009 10:49 PM by Subeesh Arakkan

    FormItem label left align issue

    Harshig

      hi experts,

       

      I am very new to Flex. I am using Flex API and i have some issue with FormItem. I cannot make the labels left align. I found a style in web which is as follows.

      <mx:Style>
      .rightAlignedLabels {
         
      text-align: center;
      }
      FormItem {
      labelStyleName:rightAlignedLabels;
      }
      </mx:Style>

       

      I want this to be used in my action script.But i do not understand to set this style via the API methods. I tried different ways as follows.

       

      new FormItem().setStyle(..,..);

       

      But still i coudn't figure it out. Please can sombody help.

       

      Thanks,

      Harshi