Using an HGroup inside of a panel to add a margin from edge
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="My Title"> <s:HGroup top="5" bottom="5" left="5" right="5"> <mx:Button label="Button 1" /> <mx:Button label="Button 2" /> </s:HGroup> </mx:Panel> </s:Application>