<?xml version="1.0" encoding="utf-8"?> <mx:Application name="HDividedBox_getDividerAt_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ private function checkBox_change(evt:Event):void { var value:Boolean = !checkBox.selected; var idx:uint; var len:uint = hDividedBox.numDividers; for (idx = 0; idx < len; idx++) { hDividedBox.getDividerAt(idx).visible = value; } } ]]> </mx:Script> <mx:ApplicationControlBar dock="true"> <mx:CheckBox id="checkBox" label="Disable dividers:" labelPlacement="left" change="checkBox_change(event);" /> </mx:ApplicationControlBar> <mx:HDividedBox id="hDividedBox" width="100%" height="100%"> <mx:HBox id="hBox1" width="100%" height="100%" backgroundColor="haloGreen"> </mx:HBox> <mx:HBox id="hBox2" width="100%" height="100%" backgroundColor="haloBlue"> </mx:HBox> <mx:HBox id="hBox3" width="100%" height="100%" backgroundColor="haloOrange"> </mx:HBox> </mx:HDividedBox> </mx:Application>