Adding a pop-up link into Kirupa Flash gallery

[LEFT]I got links working in the kirupa gallery script. I am building a portfolio with images and captions, and there are links in the captions (array [4]) that open new browser pages. I would like some of these links to open pop-up windows (the dimension and page links will vary since they are motion films that pop-up). I haven’t been able to get the JS working for the pop ups through the xml and flash files.

I’m not sure what I’m doing wrong, I thought that just adding a javascript header script, and using the regular pop up method would work but it doesn’t. Any ideas? I’ve viewed GetURL methods, but I don’t have a button in Flash, so not sure how to go about.

I appreciate your help. I’m hoping someone knows the answer to this. Does begging for help count? (laugh) Thanks in advance.

**Actionscript

**

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = ;
description = ;
description2 = ;
description3 = ;
description4 = ;
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
description2* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
description3* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
description4* = xmlNode.childNodes*.childNodes[4].firstChild.nodeValue;
}
firstImage();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“flash.xml”);
// ///////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
// ///////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt4.html = true;
desc_txt.text = description[p];
desc_txt2.text = description2[p];
desc_txt3.text = description3[p];
desc_txt4.htmlText = description4[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p–;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt4.html = true;
desc_txt.text = description[p];
desc_txt2.text = description2[p];
desc_txt3.text = description3[p];
desc_txt4.htmlText = description4[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt4.html = true;
desc_txt.text = description[0];
desc_txt2.text = description2[0];
desc_txt3.text = description3[0];
desc_txt4.htmlText = description4[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" of "+total;
}

** HTML PAGE **includes this:

                          &lt;script language="JavaScript" type="Text/JavaScript"&gt;

<!–
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//–>
</script>

** XML FILE (link is array 4, I’ve taken out the other captions for easier reading):**

                          &lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;

<images>
<pic>
<link><![CDATA[<a href=“javascript:;” onClick=“MM_openBrWindow(‘page.html’,‘’,‘scrollbar s=0,width=700,height=300’)”>page link</a>]]></link>
</pic>
</images>
[/LEFT]