Hello all. I want to dynamically load a list of items into a text box instead of a component list. This is the code I have so far. Unfortunatley, I can only get the component list box to work. Could somebody please look at this and show me how to get the textbox to read items. I know the problem is in line 6… something to do with the whole ‘addItem’ thing (yes, I’m a noob).
function loadXML(loaded) {
if (loaded) {
var nodes = this.firstChild.childNodes;
for (i=0; i<nodes.length; i++) {
//theList.addItem(nodes*.firstChild.nodeValue,i);
_root.myText.text = addItem(nodes*.firstChild.nodeValue,i);
}
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("words.xml");