Scale Children of a Container
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark"> <mx:Script> import mx.events.SliderEvent; import spark.components.ResizeMode; private function toggleResizeMode():void { group.resizeMode = ( group.resizeMode == ResizeMode.NO_SCALE ) ? group.resizeMode = ResizeMode.SCALE : group.resizeMode = ResizeMode.NO_SCALE; } </mx:Script> <s:Group id="group" width="{slider.value}" height="{slider.value}" resizeMode="{ResizeMode.NO_SCALE}"> <s:layout> <s:TileLayout orientation="columns" /> </s:layout> <mx:Button label="button" /> </s:Group> <mx:HSlider id="slider" width="120" minimum="100" maximum="300" value="300" liveDragging="true"/> <mx:Button label="toggle resize" click="toggleResizeMode();" /> </mx:Application>