# flashXML setRGB

**URL:** <https://forum.kirupa.com/t/flashxml-setrgb/201827>\
**Category:** Uncategorized\
**Created:** [September 25, 2006, 3:11pm UTC](https://forum.kirupa.com/t/flashxml-setrgb/201827 "2006-09-25T15:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim\_wnt](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jim\_wnt](https://forum.kirupa.com/u/jim_wnt)\
**Post date:** [September 25, 2006, 3:11pm UTC](https://forum.kirupa.com/t/flashxml-setrgb/201827/1 "2006-09-25T15:11:46Z")

</div>

First, the xml is as follows

```auto
<?xml version="1.0" standalone="yes"?>
<config>
 <background color="0xFCE6B8"></background>
 <border color="0xFFFFFF"></border>
</config

```

> 

and now the actionscript

```auto
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!
