Concatenate strings

Hello everybody!

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

this is my code:


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!! :slight_smile:

thx a lot in advance