Set selected index for List
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="400" height="300">
<mx:Script>
[Bindable]
private var dp:Array = [{name:"A", position:"a"},
{name:"B", position:"b"},
{name:"C", position:"c"},
{name:"D", position:"d"}];
</mx:Script>
<mx:List width="200"
selectedIndex="1"
id="listImpl"
selectionColor="#CCCCFF"
labelField="name"
dataProvider="{dp}"
editable="true" />
</mx:Canvas>
</mx:Application>
Related examples in the same category