1 Reply Latest reply on Nov 25, 2009 3:01 AM by Madhav Subedi

    Setting a labels text dynamically from code.

    Karam Chandrabose

      I have a horizontal list which is bound to a array.

       

      when i use just pure mxml , am able to achieve setting a labels text from the selected Item of the horizontallist as follows.

      <mx:Label id="VodNameLabel" text="{objHorizontalList.selectedItem.VodName}"  />

       

      here objHorizontalList is instance of a horizontal list.VodName is a field in the data item of the data provider. above code works perfectly fine.

       

      how do I achieve the above functionality in action script, my scenario is that I have a dynamic number of horizontal lists and need to assign the labels property dynamically from action script.

       

       

      please help!

      karam C Bose