Set Slider tip function
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> private function intToHex(color:int = 0):String { var mask:String = "000000"; var str:String = mask + color.toString(16).toUpperCase() return "#" + str.substr(str.length - 6); } </mx:Script> <mx:HSlider id="slider" minimum="0x000000" maximum="0xFFFFFF" liveDragging="true" dataTipFormatFunction="intToHex"/> <mx:Label text="{intToHex(slider.value)}" /> </mx:Application>