2 Replies Latest reply on Apr 2, 2009 3:58 PM by Roni.Nair

    HorizontalList - How to programatically select an item

    Roni.Nair
      Hi All,
      I am new to flex and new to this forum. I am building an application that uses a HorizontalList and a button.
      When the button is clicked, I need to add a new item (image + label) on the HorizontalList, and I need to make the newly added item the default selection.

      I tried to set the selectedIndex property, but that does not work.
      Any idea how to make this work ? ie how to programatically select an item in the HorizontalList

      Regards
      Roni