# Xml link variable in getURL

**URL:** <https://forum.kirupa.com/t/xml-link-variable-in-geturl/236878>\
**Category:** Uncategorized\
**Created:** [August 24, 2007, 3:37pm UTC](https://forum.kirupa.com/t/xml-link-variable-in-geturl/236878 "2007-08-24T15:37:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![punstc](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@punstc](https://forum.kirupa.com/u/punstc)\
**Post date:** [August 24, 2007, 3:37pm UTC](https://forum.kirupa.com/t/xml-link-variable-in-geturl/236878/1 "2007-08-24T15:37:26Z")

</div>

i have a link setup in my xml attributes so that when i click a button it will use that link.  
ex. of xml

```auto
<song name ="Test Track 1" band ="Band1" file="test1.mp3" lyrics="http://www.theskooks.com" />

```

lyrics attribute is the link i’m trying to use for the button i have made an new rray and everything for it and then created on release functions to getURL from that attribute from the xml but my code doesnt work properly it doesnt get the url.

heres my code can any one help me out?

```auto

playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
    if (success) {
        _global.songname = [];
        _global.songband = [];
        _global.songfile = [];
        _global.lyrics = [];
        for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
        _global.songname* = playlist.firstChild.childNodes*.attributes.name;
        _global.songband* = playlist.firstChild.childNodes*.attributes.band;
        _global.songfile* = playlist.firstChild.childNodes*.attributes.file;
        _global.lyrics* = playlist.firstChild.childNodes*.attributes.lyrics;
        attachMovie("butTemp","but"+i,i+50);
        eval("but"+i).id=i;
        _root["but"+i]._x = 5;
        _root["but"+i]._y = 40 + (i*15);
        _root["but"+i].but_txt.text = songname*;
        if (i >= 25){
            _root["but"+i]._x = 160
            _root["but"+i]._y = -5 + (i*15);
        }
        attachMovie("lyrics","lyricbut"+i,i+81);
        eval("lyricbut"+i).id=i;
        _root["lyricbut"+i]._x = 390;
        _root["lyricbut"+i]._y = 40 + (i*15);
        
        attachMovie("download","downloadbut"+i,i+112);
        eval("downloadbut"+i).id=i;
        _root["downloadbut"+i]._x = 455;
        _root["downloadbut"+i]._y = 40 + (i*15);
        
        trace(_global.lyrics*)

        
        _root["but"+i].onRelease = function(){
            clearInterval(timeInterval);
            _root.timeDisplay_txt.text = "00:00/00:00";
            _root.sound_mc.songStarter(songfile[this.id]);
        }
        
        _root["lyricbut"+i].onRelease = function(){
            getURL(_global.lyrics*.info ,_blank)
        
        }
    
    }
    }

```

thanks,  
jake
