Log the component sizes to flashlog.txt
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="logSizes();"> <mx:Script> private function logSizes():void { trace("HBox: "+ hb1.width); trace("Label: "+ lb1.width); trace("Image: "+ img1.width); trace("Button: "+ b1.width); } </mx:Script> <mx:HBox id="hb1" width="250"> <mx:Label id="lb1" text="Hello" width="50" /> <mx:Image id="img1" source="@Embed(source='logo.jpg')" width="75%" /> <mx:Button id="b1" label="Button" width="25%" /> </mx:HBox> </mx:Application>