I think the problem is that you're pulling your string from another text
field. In that case, the characters are just characters, rather than control
codes. This subset of your code works fine:

var tmpField:TextField = this.createTextField("my_txt", 1, 0,0,100,100);
tmpField.selectable = false;
tmpField.border = true;
tmpField.type = "dynamic";
tmpField.multiline = true;
tmpField.wordWrap = true;
tmpField.text = "test\rtest";

However, putting "test\rtest" in another text field, and then saying this:

tmpField.text = other.text;

shows the characters. If you have to pull text from another field, try using
HTML and setting the .html of one field to the .html of another field.


Rich
http://www.LearningActionScript3.com


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to