paddingLeft, paddingRight is the option with horizontalAlign="center"
I forgot to mention: the content of the group will be dynamically generated, and I don't know how many "buttons" there will be in the group.
<s:layout> <s:TileLayout paddingLeft="100" paddingRight="100" horizontalAlign="center"/> </s:layout>
probably this will work, change padding and group width to get expected result.
Because the content is generated dynamically, I cant adjust the margins and padding before compiling. I would probably be able to calculate them adjust them dynamically, though.
I was wondering I'f someone knows an easier way to do it than calculating paddings, like if there is some parameter or trick I can use with the components to auto-center things.
You might try using constraints on the buttons. horizontalCenter=0 and verticalCenter=0.