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
call List.scrollToIndex(newIndex) as well
Thanks for the reply. However I cannot find that property on my spark list, using 4.1.
I ended up using selectedItem and so far works ok.
I am still curious to know how to make it work with selectedItem though....