Problem using clickTAG with dynamic links from XML

Hi, hope someone can help with this one…

I’m putting together a banner that has multiple buttons each calling a getURL function, with the links being loaded from an XML file. So for example, the current operation is

button.onRelease = function() {
getURL(linkArray[currentLink], “_self”);

Where ‘linkArray’ contains a series of URLs taken from an XML file. How do I integrate this with with clickTAG functionality?