views:

61

answers:

0

for example: In the movieclip which is called (content) inside this we have 2 more textfields which are called titleID and descriptionID, now I try to make this inside the movieclip (content)

NOTE: _root.title[0] and _root.description[0] are arrays in the root timeline outside the movieclip (content) take a look in the code:

title[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; description[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;

textfields which are in movieclip (content) titleID.text = _root.title[0]; // XML say undefined in output panel descriptionID.text = _root.description[0]; // XML say undefined in output panel

And take a look that, this is in the root timeline and works great!

content.titleID.text = title[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; content.descriptionID.text = description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;