I have 6 dynamic text fields & I want to add text in them from an xml file.
This code works:
titleTxt1.text = xmlListMain.children()[0].title;
But in a loop there is a problem:
for (var i:Number = 0; i < xmlListMain.children().length(); i++) {
titleTxt[i].text = xmlListMain.children()[i].title
}
titleTxt[i].text is the part i get the error. How can I fix this?