# How to simulate linebreak (\\n) from txt file variables?

**URL:** https://forum.kirupa.com/t/how-to-simulate-linebreak-n-from-txt-file-variables/245055
**Category:** flash
**Created:** [November 25, 2007, 11:57pm UTC](https://forum.kirupa.com/t/how-to-simulate-linebreak-n-from-txt-file-variables/245055 "2007-11-25T23:57:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bojan](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@Bojan](https://forum.kirupa.com/u/Bojan)
#### Post date: [November 25, 2007, 11:57pm UTC](https://forum.kirupa.com/t/how-to-simulate-linebreak-n-from-txt-file-variables/245055/1 "2007-11-25T23:57:18Z")

</div>

Hi,  
how can I simulate line break (  
) from txt file variables ?

Here is a code:

```auto

[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,
