I'm having a problem with TextField component cutting the words at the very end of every line, even though the wordWrap property is set to true.
example:
This is a test te
xt, this is a tes
t text. This is a
test text.
How to fix this? thanks
EDIT 1:
I have a textFormat applied with parameter .size=20.
EDIT 2:
Here is the relevant code:
var tx:TextField = new TextField();
var tf:TextFormat = new TextFormat();
tf.size = 18;
tx.defaultTextFormat = tf;
tx.autoSize = TextFieldAutoSize.CENTER;
tx.multiline = true;
tx.wordWrap = true;
tx.width = 835;
tx.text = "Long text..";