Set value for horizontal slider
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"> <mx:Script> private function formatFunction(item:Object):String { return "Value: " + item.toString(); } </mx:Script> <mx:HSlider id="slider" value="3" dataTipFormatFunction="formatFunction" /> <mx:Label id="lbl" text="{slider.value}" /> </mx:Application>