Hi im trying to load some links from a XML doc to my flash file. Since im just trying to figure this out ive just simply made up a very simple button in my flash movie and given it the instance name of myButton. Below is the xml doc im using as the AS:

xml:

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

<links>
<link button='myButton' url='www.google.com' />
</links>

---------------------------------------------------------------

and this is my AS in the first frame of my movie:


---------------------------------------------------------------
var myXML=new XML();
myXML.onLoad=function(){

var Button:MovieClip= _root[this.firstNode.childNodes[0].attributes.button];
var theURL:String=this.firstNode.childNodes[0].attributes.url;

Button.gotoURL=theURL;
Button.onPress=function(){
getURL(this.gotoURL, "_blank");
}

}
myXML.load("myxml.xml");

---------------------------------------------------------------

But obviously its not working, hence my post, can someone help me out?
Additional info all this is in AS2