I have ran across many complex solutions but I’m looking for something more simple. Here is what I have so far, but it is not working.
[AS]var colorful = new Color("_root.box");
xmlNav = new XML();
xmlNav.ignoreWhite = true;
xmlNav.onLoad = loadXML;
xmlNav.load(“xml_color.xml”);
function loadXML(loaded) {
if (loaded) {
colorful.setRGB = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
}
}[/AS]
Here is the XML:
[AS]<?xml version=“1.0”?>
<colorsets>
<set1>
<entry1>0x003366</entry1>
</set1>
</colorsets>[/AS]
What am I missing?