XML links to load AS2 swf

Hello

Here is my AS2/XML question - I think it has a fairly straightforward solution, but I’m quite new to XML!

I’m using an AS2 carousel loaded as an swf into an AS3 page - no problem there.

The AS2 files loads PNG icons that have XML links set to load external URLs.

I’d like to somehow alter the XML file so that instead of the links loading external URLs, when clicked they load swf files back into the AS2 file.

Hope this is clear - below I’ve included the AS2 code for the carousel and the XML code.

These files are from xuroqflash.com - an excellent resource site, but a little difficult to get support from!

Any help with this problem is greatly appreciated!

Here’s the AS2 code:

import mx.utils.Delegate;
//set variables
var numOfItems:Number;
var radiusX:Number = 240;
var radiusY:Number = 95;
var centerX:Number = 550;
var centerY:Number = 300;
var speed:Number = 0.1;
var perspective:Number = 150;
var home:MovieClip = this;
//load XML shhet(images)
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie(“item”,“item”+i,i+1);
t.angle = i * ((Math.PI2)/numOfItems);
t.onEnterFrame = mover;
t.url = nodes
.attributes.url;
t.icon.inner.loadMovie(nodes*.attributes.image);
t.r.inner.loadMovie(nodes*.attributes.image);
t.icon.onRelease = released;
}
}
//on release function
function released()
{
getURL(this._parent.url);
}
xml.load(“icons.xml”);
//tells how the carousel should interact to mouse
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
//speed of movement
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/4500;
}

And here’s the XML:

<icons>
<icon image=“icon1.png” url=“http://limewire.com” />
<icon image=“icon2.png” url=“http://adobe.com/products/fireworks” />
<icon image=“icon3.png” url=“http://adobe.com/products/flash” />
<icon image=“icon4.png” url=“http://adobe.com/products/photoshop” />
<icon image=“icon5.png” url="http://adobe.com/products/dreamweaver/ "/>
</icons>

I’ve tried naming the url to eg. url=“about.swf” target="_self" but I don’t think that’s the answer!

Can anyone help? Much obliged, Galland