Is there any way to set horizontalAlign from Action Script not from mxml?
Asked
Active
Viewed 7,443 times
1 Answers
8
Try this:
setStyle("horizontalAlign", "center");

sharvey
- 7,635
- 7
- 48
- 66
-
2Yes, if you check the documentation, anything listed under styles must be set using a call to setStyle() rather than directly as a property. – Josh Tynjala Oct 19 '09 at 19:47