Get UI controls's width
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:HBox id="h21"> <mx:Button id="bG1" label="Label 1" width="50%" /> <mx:Button id="bG2" label="Label 2" width="40%" minWidth="70" /> <mx:Button id="bG3" label="Label 3" /> </mx:HBox> <mx:TextArea height="50" width="100%"> <mx:text> HBox: {h21.width} Button1: {bG1.width} Button2: {bG2.width} Button3: {bG3.width} </mx:text> </mx:TextArea> </mx:Application>