hi…
i’m new to xml and i’m finishing up a flash project for school. i’m supposed to load text dynamically and it’s not showing up. my whole class basically copied the xml from the teacher’s example so i have no idea what i’m doing. the code worked in a previous file and now it’s not showing up…
here’s the code we’re using:
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.load(“info.xml”);
xmlData.onLoad = function(loaded) {
if (loaded) {
var xmain = xmlData.firstChild;
var comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
var pinfo = xmlData.firstChild.childNodes[0].attributes.txtloc;
this.general.mc_intro.loadVariables(pinfo);
trace(xmain);
trace(“success”);
} else {
trace(“file not loaded!”);
}
};
some more details:
- i’m using flash 8
- i used the sliding menu tutorial: (http://www.kirupa.com/developer/flash5/slidingmenu.htm)
- it is targeting a dynamic text field that’s inside 2 movie clips and is NOT masked (even though it is in the tutorial
any help or suggestions would be greatly appreciated!!
please let me know if you need more info…
thanks!!! (: