Im loading text from XML into a dynamic textfield.multiline is true but the text doesn't wordwrap correct. Instead the text is cut off and the linebreak appears but at the wrong place.
This only happens if the text is leftaligned.
I just can't figure out a way to solve it.
Desperate for help.
The textfield is set to wordwrap, so that is not the problem.
The strange thing that if I set the text to be either center- or right aligned it wraps correctly. It also works if the the text is not anti-aliased.
But as I want the text to be leftaligned and anti-aliased for readability those are not good options.
The font is embedded and I use CDATA in the xml-tag to make it possible to use html-tags. I set the htmlText.
Is it a flashbug or are there any ways around this.
Hi,
I think you should set textfield property autosize to left.
like : txtfield.autoSize = TextFieldAutoSize.LEFT;
And if this not works, you can manually set the X property and width of the textfield on click event.
This could be the solution of your problem.
Regards,
Vipul
North America
Europe, Middle East and Africa
Asia Pacific