I have a horizontal buttonBar with number of options that
forces horizontal scrolling to see all.
Is there a way to wrap so that if total width exceeds
container's width, it will just start a second,etc. row?
It's not as easy as flipping a switch. You'd have to do some
monkeying around to get it to work. ButtonBar is basically a fancy
Box component. You could sub-class ButtonBar and in the constructor
override the layoutObject property (which is an mx_internal
property, so you'll need to import mx.core.mx_internal to make that
property available to yourself). You'd then have to sub-class
BoxLayout and modify it to do what you'd like.
In the BoxLayout sub-class, you'd probably just have to
override updateDisplayList() and layout your buttons in multiple
rows if unscaledWidth < measuredWidth.