Hi,
how can I simulate line break (
) from txt file variables ?
Here is a code:
[FONT=Courier New]_root.createTextField("test_txt", 1, 10, 10, 300, 50);[/FONT]
[FONT=Courier New]test_txt.selectable = false;[/FONT]
[FONT=Courier New]test_txt.wordWrap = true;[/FONT]
[FONT=Courier New]test_txt.multiline = true;[/FONT]
[FONT=Courier New]// this line works[/FONT]
[FONT=Courier New]//test_txt.text = "First line
Second Line";[/FONT]
[FONT=Courier New]var lv:LoadVars = new LoadVars();[/FONT]
[FONT=Courier New]lv.load("test.txt");[/FONT]
[FONT=Courier New]lv.onLoad = function()[/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New] test_txt.text = this.textVar; //this dosen't :([/FONT]
[FONT=Courier New]}[/FONT]
Text file contain this:
[FONT=Courier New]textVar=First line
Second Line[/FONT]
Thanks,