ho scaricato un bellissimo script per photogallery in scroll da xml con java popup

l'ho inserito in un mc tramite
loadMovie("gallery/gallery.swf", "gallery");

sul fla ho cambiato tutti i percorsi dal _root a _root.gallery... e cosi funziona tutto tranne l'apertura del popup
non capisco perchè

questo è il codice in AS di un frame

function getLabel(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[0].firstChild.nodeValue);
}
function getLink(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[1].firstChild.nodeValue);
}
function getWidth(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[2].firstChild.nodeValue);
}
function getHeight(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[3].firstChild.nodeValue);
}
function getPic(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[4].firstChild.nodeValue);
}
function alphaIn(_arg1) {
if (_arg1.txt.txt._currentframe<9) {
_arg1.txt.txt.play();
}
}
function alphaOut(_arg1) {
_arg1.txt.txt.gotoAndStop(1);
}
function launchProject(_arg1) {
myURL = new String(("'gallery/popup"+_arg1.launchURL)+"'");
myHeight = new String(("'height="+_arg1.launchHeight)+",");
myWidth = new String(("width="+_arg1.launchWidth)+",");
getURL((((("javascriptpenNewWindow("+myURL)+",'HMX',")+myHeight)+myWidth )+"toolbar=no,scrollbars=no')");
}
baseNode = featXML.firstChild;
var child = baseNode.firstChild;
while (child != null) {
numItems++;
child = child.nextSibling;
}
_root.gallery.createEmptyMovieClip("featuredProjec ts", 1);
featuredProjects._y = 6;
featuredProjects._visible = false;
i = 0;
while (i<numItems) {
featuredProjects.attachMovie("thumb", "thumb"+i, i);
myN = eval("featuredProjects.thumb"+i);
myN.hitArea = myN.hA;
myN.createEmptyMovieClip("pic", 1);
myN.createEmptyMovieClip("txt", 2);
myN.txt._y = -5;
myN.hA._visible = false;
myN.attachMovie("thumbLabel", "thumbLabel", 2);
myN.thumbLabel.txt = getLabel(i);
myN.thumbLabel._y = -33;
myN.thumbLabel._alpha = 0;
myPic = getPic(i);
myLabel = getLabel(i);
myN.pic.loadMovie("gallery/images/"+myPic, 1);
myN.txt.attachMovie("txt", "txt", 2);
myN.txt.txt.txt = myLabel;
myN.launchURL = getLink(i);
myN.launchWidth = getWidth(i);
myN.launchHeight = getHeight(i);
myN.onPress = function() {
};
i++;
}
il codice nel file html per il java script è questo

<script language="JavaScript">
<!-- //
var popNameWindow = null; // This must be declared as a global
function MakePop(width,height) {
closePop();
var features = 'width=' + width + ',height=' + height;

popNameWindow = window.open('','HMX',features);
popNameWindow.focus();
}

function openNewWindow(URLtoOpen, windowName, windowFeatures)
{
closePop();
popNameWindow=window.open(URLtoOpen, windowName, windowFeatures);

popNameWindow.focus();
}
function closePop() {
if ( ( popNameWindow != null ) && ( !popNameWindow.closed )) {
// window is still open -> close it
popNameWindow.close();
popNameWindow = null;
}
}

// -->
</script>
qualcuno crede di sapere quale potrebbe essere il problema?