So I am familar with the Vbox property horizontalAlign and I would typically set it to center when I create one at design time. Now I am create componets at runtime and want to align all the Vbox children(or componets in the Vbox) so that they are centered, but there is no property horizontalAlign to set. So my question is, one how can I make sure all my Vbox componets are centered and two, will I run into this type of thing with all the componets.
horizontalAlign - is not a property as you might though at first, it's a style
so in order to set it use vbox.setStyle('horizontalAlign','center');
ah, that makes sense. Thanks.
Is there a way to determine what is a style vs a direct property? -- with logical sytax of sometype?
sure, if you are using Flex Builder, you should take a look at icons in suggestion box, properties marked as green circles, styles as salt cubes