When you want to have linebreaks in a multiline text in AS you should write this, right?
Code:
[LEFT]var mytext:String="This is
what
I want";[/LEFT]
so you have a 3-line text. ok, so i have a textfield, and its content will be loaded from a xml file. in my xml i have something like this:
Code:
[LEFT]<mytext>This is
what
I want</mytext>[/LEFT]
then, when i load the file and assign that node to the .text property of my textfield it doesn’t recognize the linebreaks. I had no trouble loading and working with the rest of the data. i just want to include the linebreaks in the xml, but i don’t know how. i also tried casting the type of variable to string, tried using the toString() method of the xmllist and nothing.
How can i solve this? any ideas??