# New line in dynamic text box

**URL:** <https://forum.kirupa.com/t/new-line-in-dynamic-text-box/315824>\
**Category:** flash\
**Created:** [November 5, 2010, 2:13am UTC](https://forum.kirupa.com/t/new-line-in-dynamic-text-box/315824 "2010-11-05T02:13:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treeleaf20](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Post date:** [November 5, 2010, 2:13am UTC](https://forum.kirupa.com/t/new-line-in-dynamic-text-box/315824/1 "2010-11-05T02:13:18Z")

</div>

All,  
I have the following code:

```auto

function loadXML(loaded) {
if (loaded) {
_root.myMemories = xmlData.firstChild.childNodes;
_root.myMemoriesTotal = myMemories.length;
for(i=0;i<_root.myMemoriesTotal;i++){
_root.name = this.firstChild.childNodes*.childNodes[0].firstChild.nodeValue;
_root.text = this.firstChild.childNodes*.childNodes[1].firstChild.nodeValue;
array_txt.htmlText = _root.name;
array_txt.htmlText = "<br>";
trace (_root.name);
array_txt.htmlText = _root.text;
trace (_root.text);
}
} else {
  trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("memory.xml");

```

This works good and the trace works fine however when it writes it to my text box it just keeps putting it over the other thing. How can I put in a line break to break up the text??

I tried to put in the \<br\> which is a line break in html and specified the HTML text but it doesn’t seem to work. Any ideas?

Thanks!
