Problem:
Most computers today should be powerful enough to handle normal/high quality flash games, but in some cases we are still required to have a "Low Graphic Quality" option, and this is where the problem occurs.
Normally when we set dynamic text by using:
myTextField.embedFonts = true;
myTextField.antiAliasType = AntiAliasType.ADVANCED
We can then load and set text to the text field dynamically (from XML or wherever).
But when the stage quality is set to low, sometimes we see the text is garbled and squeezed together, or only the first letter is displayed.
Solution:
You might notice that if you resize the stage, these texts suddenly fix themselves - low quality, but readable. Therefore, to display low quality texts, we need to "change" the size of the text field.
Whenever you set the value of your text field dynamically, add the following code:
myTextField.text = newText;
var w : Number = myTextField.width;
myTextField.width = w+1;
myTextField.with = w;
And it somehow just works!
...random