First, the xml is as follows
<?xml version="1.0" standalone="yes"?>
<config>
<background color="0xFCE6B8"></background>
<border color="0xFFFFFF"></border>
</config
and now the actionscript
thisXML = new XML();
thisXML.ignoreWhite = true;
thisXML.onLoad = LoadColorData;
function LoadColorData() {
bg = this.firstChild.firstChild.attributes["color"];
line = this.firstChild.childNodes[1].attributes;
myColor = new Color(fill);
myColor.setRGB(bg);
myColor = new Color(border);
myColor.setRGB(line);
}
thisXML.load("config.xml");
I have the background color working just fine. However, the border will not work. Please keep in mind I used a tutorial to get the background to work and it was not very helpful in explaining the specifics. I am rather new to xml, so an easy explaination would be best. Thanks!