2 Replies Latest reply on Feb 8, 2011 8:28 AM by thibs73

    Spark List with Custom ItemRenderer -> SelectedIndex

    thibs73 Level 1

      Hi All,


      I am trying to figure out how to visually update the selectedIndex property of the List.


      I have a List that I change its selectedIndex in AS3:


      List.selectedIndex = newIndex;


      I can see that the selectedIndex property changes, but the List does not relfect this change visually and does not set the proper renderer to selected.


      I read that setting selectedIndex in AS3 will only dispatch valueCommit event and not change event like when user selects an item.


      How can I make my list select the proper renderer using AS3 selectedIndex?


      thanks in advance