Categories Displayed in Flash

AS3: Bug with TextField.appendText with whitespace

In Flash 9.0 r28, 9.0 r48 when appendingText I get wonkiness.

  1. output_txt.appendText("A:\r");
  2. output_txt.appendText("B:");

Outputs

A:B:

Should Be

A:
B:

In another case, when using other tabs and newlines, I've also had it do something like this
Outputs

A
:B:

Weird!

The solution I've found is adding an extra space at the end (after the \r)

  1. output_txt.appendText("A:\r ");
  2. output_txt.appendText("B:");

Outputs

A:
B:

Add a Comment: