I really need an HBox answer, but I think that if we get a good answer, it will help anyone trying to do a similar thing with VBox. It would be nice to know this in both actionscript and MXML.
So, I have an HBox that I want the text to align to the left and some radios to the right. For instance:
___________________________________________________ | | |Text Yes () No() | |___________________________________________________|
I am currently doing this with an invisible block 100% wide between text and radios, for example
_____ __________________________________ ________________ | | | | |Text | invisible box percentWidth=100; | Yes () No() | |_____|__________________________________|________________|
I would rather just have the radio stations in my own HBox, which is right-aligned as follows:
_____ ________________________________________________________ | | | |Text | Yes () No() | |_____|________________________________________________________|
I saw some posts talking about the horizontalAlign property, but I don't see anything in the documentation.
So how can I do this?
Thank you ~ Microphone
source share