Using an array of components to dispaly Buttons
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" > <fx:Declarations> <mx:ArrayCollection id="someData"> <mx:Button label="Button 1" /> <mx:Button label="Button 2" /> <mx:Button label="Button 3" /> </mx:ArrayCollection> </fx:Declarations> <mx:DataGroup dataProvider="{someData}"> <mx:layout> <mx:TileLayout orientation="columns" requestedColumnCount="2" /> </mx:layout> </mx:DataGroup> </mx:Application>