Get thumb index for two-thumb slider
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.events.SliderEvent; import mx.controls.sliderClasses.Slider; private function sliderChangeTwo(event:SliderEvent):void { var ct:Slider=Slider(event.currentTarget); thumbTwoA.text=String(ct.values[0]); thumbTwoB.text=String(ct.values[1]); thumbIndex.text=String(event.thumbIndex); } </mx:Script> <mx:HSlider thumbCount="2" change="sliderChangeTwo(event);" /> <mx:TextArea id="thumbTwoA" /> <mx:TextArea id="thumbTwoB" /> <mx:TextArea id="thumbIndex" /> </mx:Application>