If I assign to a TextField
a normal string containing newline backslash escape sequences
it works…
i.e. it shows exactly more than one line of text…
If I assign to a TextField
a string taken from an XML element
it doesn’t work
i.e. it doesn’t shows more than one line…
and it still shows newline backslash escape sequences.
Tracing of both strings is exactly the same!
:h:
Is there anybody that can explain this behavior?
Or that can suggest me a way to bypass the problem…
this works:
var s:String = "text containing newline backslash escape
continue after newline
and after";
textfield.text = s;
and visualize this:
text containing newline backslash escape
continue after newline
and after
if reading from an xml element:
<anxmlelement>text containing newline backslash escape
continue after newline
and after</anxmlelement>
this doesn’t work:
var s:String = MainXML.anxmlelement.toString();
textfield.text = s;
and visualize this:
text containing newline backslash escape
continue after newline
and after
Thanks for any help
Jo