Use HSlider to choose value
<?xml version='1.0' encoding='UTF-8'?>
<mx:Application
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.controls.Alert;
public function showMsg(msg:String):void {
Alert.show(msg);
}
</mx:Script>
<mx:Panel title="Profile">
<s:VGroup>
<mx:Label fontWeight="bold" text="How long is your commute (mins)?" />
<mx:HSlider id="commuteTimeRange"
minimum="0"
maximum="180"
snapInterval="5"
tickInterval="15"
labels="[0 mins,180 mins]"
thumbCount="2"
change="showMsg(commuteTimeRange.values.toString())">
</mx:HSlider>
</s:VGroup>
</mx:Panel>
</mx:Application>
Related examples in the same category