change width with slider
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > <mx:Script> private function changeWidth():void { this.width = slider.value*150; } </mx:Script> <mx:HSlider id="slider" change="changeWidth()"/> </mx:Application>