I have some dynamic text boxes loading text from an array. I initially have the text box aligned “right” but when you put dynamic text it “left” aligns them. Anyway, here is my code:
var format:TextFormat = new TextFormat();
format.align = "right";
var numLinks:Number = 11;
for (var i = 0; i <= numLinks; i++) {
this["txt" + i].autoSize = true;
this["res" + i].txt.autoSize = true;
this["txt" + i].text = resourceTitles*;
this["res" + i].txt.htmlText = resources*;
this["res" + i].txt.setTextFormat(format);
}
So my problem is, its not aligning. I even tried doing htmlText and using <p align=“right”>resources*</p> and no luck…any ideas?