Actionscript – Horizontal align components inside HBox from Action Script

actionscriptalignmentapache-flexflex3hbox

Is there any way to set horizontalAlign from Action Script not from mxml?

Best Answer

Try this:

setStyle("horizontalAlign", "center");
Related Topic