# Concatenate strings

**URL:** https://forum.kirupa.com/t/concatenate-strings/210382
**Category:** flash
**Created:** [December 18, 2006, 12:27pm UTC](https://forum.kirupa.com/t/concatenate-strings/210382 "2006-12-18T12:27:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BDore](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@BDore](https://forum.kirupa.com/u/BDore)
#### Post date: [December 18, 2006, 12:27pm UTC](https://forum.kirupa.com/t/concatenate-strings/210382/1 "2006-12-18T12:27:52Z")

</div>

Hello everybody!

I want two concatenate two strings I’m importing from a xml file.

this is my code:

```auto

stop();

txtMat1.wordWrap =
txtMat1.html =
txtMat1.multiline = true;

var myText:String = xmlTemplates.firstChild.childNodes[4].firstChild.childNodes[1].firstChild;
var imgTxt:String = xmlTemplates.firstChild.childNodes[4].firstChild.childNodes[2].firstChild;
var txtConc:String = myText + imgTxt;
txtMat1.htmlText = txtConc;

```

I’m getting **NaN** in my textfield. The _add_ operator does not work anymore with flash player 8 and above and that’s where I’m aiming.

Help!! 🙂

thx a lot in advance
