Hi all. I'm a bit new to AS3 and have a pretty simple question. Here is my code.
but what if the text boxes (text_1 and text_2) are inside of a movieclip called mc_background? how do I reference this in the code - obviously not using _root...but?Code:function loadXML(loaded) { if (loaded) { _root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; text_1.text = _root.inventor; text_2.text = _root.comments; } else { trace("file not loaded!"); } } xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML; xmlData.load("inventors.xml");
I'm a newbie as you can see, but am working on it
~Regards
Steven







Bookmarks