Event Handling on movie clips

I have an xml file that has image path and url for that particular image
forexample;

<image>
<path> aa.jpg</path>
<url> www.goog.com</url>
</image>

What I need is to show these images like a banner one by one in a movieclip and whenever I click on image it opens its corresponding link.

What I did is I called up the xml file filled 2 arrays one of paths and other of hyperlinks.

on single movie clip I have loaded images with rotate image function that swaps the images one by one… till here alll is fine

Now I got stuck as how to handle click event on movie clip where images are loading in movieclip using load movie method, and respective to that open up the url in blank window. (please help me with this).

code is as follows in action layer:

//code for banner

function loadXMLData()
{
rootNode= gallery_xml.firstChild;
for(i=0;i<rootNode.childNodes.length;i++)
{
_global.imgs.push(rootNode.childNodes*.childNodes[0].firstChild.nodeValue);
_global.urls.push(rootNode.childNodes*.childNodes[1].firstChild.nodeValue);
}
var num = 0;
RotateImage();
setInterval( RotateImage, 3*1000 );
stop();
}

function RotateImage()
{
if( num >= imgs.length )
{
num=0;
}
loadMovie( imgs[ num ], “mcBanner” );
num++;
}

var url=“banners.xml”;
var gallery_xml= new XML();
gallery_xml.ignoreWhite= true;
gallery_xml.load(url);
gallery_xml.onLoad= loadXMLData;
_global.imgs=new Array();
_global.urls= new Array();I have an xml file that has image path and url for that particular image
forexample;

<image>
<path> aa.jpg</path>
<url> www.goog.com</url>
</image>

What I need is to show these images like a banner one by one in a movieclip and whenever I click on image it opens its corresponding link.

What I did is I called up the xml file filled 2 arrays one of paths and other of hyperlinks.

on single movie clip I have loaded images with rotate image function that swaps the images one by one… till here alll is fine

Now I got stuck as how to handle click event on movie clip where images are loading in movieclip using load movie method, and respective to that open up the url in blank window. (please help me with this).

code is as follows in action layer:

//code for banner

function loadXMLData()
{
rootNode= gallery_xml.firstChild;
for(i=0;i<rootNode.childNodes.length;i++)
{
_global.imgs.push(rootNode.childNodes*.childNodes[0].firstChild.nodeValue);
_global.urls.push(rootNode.childNodes*.childNodes[1].firstChild.nodeValue);
}
var num = 0;
RotateImage();
setInterval( RotateImage, 3*1000 );
stop();
}

function RotateImage()
{
if( num >= imgs.length )
{
num=0;
}
loadMovie( imgs[ num ], “mcBanner” );
num++;
}

var url=“banners.xml”;
var gallery_xml= new XML();
gallery_xml.ignoreWhite= true;
gallery_xml.load(url);
gallery_xml.onLoad= loadXMLData;
_global.imgs=new Array();
_global.urls= new Array();