Hello all,
I’m wondering why there is a behavior difference where a newline character (
) is involved, between a string:String and a string represented by textField.text. To wit:
var str:String = “Hello
world”;
trace(str.charAt(5) == "
"); // true
var tf:TextField = new TextField();
tf.text = str;
trace(tf.text.charAt(5) == "
"); // false
Why is the newline character recognized in the “string” and not in the “.text”?