Use Slider to control the background color for a Box
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Box id="box" width="200" height="100" backgroundColor="{slider.value}" /> <mx:HSlider id="slider" minimum="0x000000" maximum="0xFFFFFF" liveDragging="true" width="{box.width}" /> </mx:Application>