Problem passing color values from XML to Flash


I’m facing a strange little problem trying to transfer values from an XML file to my main Flahs document class.

Here is how I’ve done so far :

<?xml version="1.0" encoding="utf-8"?>

    public var stgGradientColor2:uint;

    public function processXML(e:Event):void {
        var myXML:XML = new XML(;

        stgGradientColor1 = myXML.bgGradientColor1;
        stgGradientColor2 = myXML.bgGradientColor2;

        yourName = myXML.nameText;
        yourActivity = myXML.activityText;
        myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
        myXMLLoader = null;

When I’m tracing the stgGradientColor2, I’m getting this value : 15921906 instead of my color code.

What have I done wrong ?

Another quick question, how can I transfer an array via XML, I should receive something like this :
public var linkNames=new Array(“NEWS”, “BIO”, “PORTFOLIO”, “CONTACT”);
public var linkFilesArray=new Array(‘news.swf’,‘bio.swf’, ‘portfolio.swf’,‘contact.swf’);

Many thanks !!