Mega Code Archive

 
Categories / Flex / Components
 

Use NumericStepper to set selected index for List

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:VBox>         <mx:List id="list" width="100">             <mx:ArrayCollection>                 <mx:Array>                     <mx:String>a</mx:String>                     <mx:String>b</mx:String>                     <mx:String>c</mx:String>                     <mx:String>d</mx:String>                 </mx:Array>             </mx:ArrayCollection>         </mx:List>         <mx:NumericStepper id="stepper" minimum="0" maximum="3" change="list.selectedIndex = stepper.value" />     </mx:VBox> </mx:Application>