# getURL = undefined (XML)

**URL:** <https://forum.kirupa.com/t/geturl-undefined-xml/255791>\
**Category:** flash\
**Created:** [March 27, 2008, 12:35am UTC](https://forum.kirupa.com/t/geturl-undefined-xml/255791 "2008-03-27T00:35:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![utosky](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@utosky](https://forum.kirupa.com/u/utosky)\
**Post date:** [March 27, 2008, 12:35am UTC](https://forum.kirupa.com/t/geturl-undefined-xml/255791/1 "2008-03-27T00:35:10Z")

</div>

hello, i am have a slideshow fed by an XML file. I am trying to add external links to each of the main pictures. But I get [site.com/undefined](http://site.com/undefined)

Here is the AS:

```auto
MCXML = new XML();
MCXML.load("albums/photos1.xml");
MCXML.ignoreWhite = true;
MCXML.onLoad = function(succes) {
    function Pic_Desc(n, u, g) {
        this.name = n;
        this.url = u;
        this.go = g;
        this.small = undefined;
    }
    if (succes) {
        //extraction des images du fichier XML
        var i = 0;
        while (this.firstChild.childNodes* != undefined) {
            _root.PIC* = new Pic_Desc(this.firstChild.childNodes*.attributes.nom, this.firstChild.childNodes*.attributes.url, this.firstChild.childNodes*.attributes.go);
            if (this.firstChild.childNodes*.attributes.mignature != undefined) {
                _root.PIC*.small = this.firstChild.childNodes*.attributes.mignature;
            }
            i++;
        }
        _root.MAX = i;

        button_btn.onRelease = function() {
        getURL(this.go, "_blank");
        };

```

Here is an extract of the XML:

```auto
 <photo nom="Love in New York" url="http://farm1.static.flickr.com/102/316119849_0001a45a58_o.jpg" mignature="http://farm1.static.flickr.com/102/316119849_0001a45a58_s.jpg" go="http://www.flickr.com/photos/angel_girl_x/928657526/in/set-72157604069725065/"/> 

```

Can you please help me understand what’s is wrong?

Thank you,

Marine
