# Simple setRGB via XML?

**URL:** <https://forum.kirupa.com/t/simple-setrgb-via-xml/206024>\
**Category:** flash\
**Created:** [November 4, 2006, 6:19am UTC](https://forum.kirupa.com/t/simple-setrgb-via-xml/206024 "2006-11-04T06:19:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![earph](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/earph/32/79_2.png) [@earph](https://forum.kirupa.com/u/earph)\
**Post date:** [November 4, 2006, 6:19am UTC](https://forum.kirupa.com/t/simple-setrgb-via-xml/206024/1 "2006-11-04T06:19:59Z")

</div>

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\>

```
&lt;set1&gt;
	&lt;entry1&gt;0x003366&lt;/entry1&gt;
&lt;/set1&gt;

```

\</colorsets\>[/AS]

What am I missing?
