マルチラインをtrueに設定してAS3でTextFieldを作成し、テキストを同等にすると、次のようになります。
「オラ\rオラ」
indexOf 関数を使用して \r のインデックス位置を取得できません。常に -1 を返します
私が間違っていることを誰かが知っていますか?
var txt:TextField;
txt.multiline = true;
txt.text = "Hola \r hola";
//txt now renders fine with the line break
trace(txt.indexOf("\r")); //Returns -1, should return the valid index of \r in txt