You could fake it and instead of using an input textfield, capture
keystrokes and put them into a dynamic textfield. :)
You could also validate the input textfield on every key up event and
strip any carriage returns out then.
INP_Field.text =
INP_Field.text.split(\n).join().split(\r).join();
Flash uses \r (0x0D) only in text fields. All occurencies of \n (0x0A)
are replaced with \r. E.g. if you assign foo\nbar to a text field
and read the value back, it will turn to foo\rbar.
For replacing certain characters use String.split() and
String.join().
However, it would be better to check
2 matches
Mail list logo