The simplest solution is:
<mx:TileList top="10" bottom="40" left="10" right="10"
dataProvider="{languageData}"
columnCount="4"
>
<mx:itemRenderer>
<mx:Button
label="{data.name}"
toggle="true"
/>
</mx:itemRenderer>
</mx:TileList>
The only caveat is that TileList carries a lot of visual and
interactive baggage that is difficult to completely override. The
alternative is to develop some kind of custom container that wraps
its children like words in a Text instance. That in itself would be
pretty cool.
--- In [email protected], "Paul Kukiel" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> I have a repeater:
>
>
>
>
>
> <mx:HBox top="10" bottom="40" left="10" right="10">
>
> <mx:Repeater id="productsRepeater"
> dataProvider="{languageData}" >
>
> <mx:Button id="buttonsArray"
> label="{productsRepeater.currentItem.name}" toggle="true" />
>
> </mx:Repeater>
>
> </mx:HBox>
>
>
>
> Which is working fine but I really need 4 buttons per row then to
start a
> new row. At the moment they just push of the side of the page.
>
>
>
> Ideas?
>
>
>
> Paul.
>