I am a little rusty with my action script and i am still using 2.0 in my project. I need to load variables in to flash from an xml file and i just can't seem to get it to work.
here is my flash code:
And here is my xml code:on (release) {
getxmldata = new XML();
getxmldata.load("xmldata.xml","");
if (getxmldata.loaded) {
var p = getxmldata.firstChild;
xmldoc = getxmldata.childNodes;
node_name = p.nodeName;
box_1 = p.attributes.box_1;
box_2 = p.attributes.box_2;
} else {
box_1 = "not loaded";
box_2 = "not loaded";
}
}
But this is not working and i would like some help.<?xml version="1.0" encoding="utf-8"?>
<BOX_INFO BOX_1="Box one info" BOX_1="Box two info" />
Thanks a buch