# Pop-up with java issue AS2

**URL:** <https://forum.kirupa.com/t/pop-up-with-java-issue-as2/317896>\
**Category:** Uncategorized\
**Created:** [January 5, 2011, 2:32pm UTC](https://forum.kirupa.com/t/pop-up-with-java-issue-as2/317896 "2011-01-05T14:32:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuhgawz](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@fuhgawz](https://forum.kirupa.com/u/fuhgawz)\
**Post date:** [January 5, 2011, 2:32pm UTC](https://forum.kirupa.com/t/pop-up-with-java-issue-as2/317896/1 "2011-01-05T14:32:32Z")

</div>

Hi, hope someone can help me with this. i have a slider in which each thumbnail calls for a new .swf. it works fine up to this point, but when i try to make the swf load in a pop-up it stops working. Here is the code i’m using (i didn’t make the code, i’m just updating a site that was already up, just need to make it pop-up):

MovieClip.prototype.makeBorder = function (col, bsize)  
{  
var w = this.\_width;  
var h = this.\_height;  
this.createEmptyMovieClip(“border\_mc”, 10);  
with (this.border\_mc)  
{  
lineStyle(col, 16777215, 0);  
lineTo(w, 0);  
lineTo(w, h);  
lineTo(0, h);  
lineTo(0, 0);  
} // End of with  
};  
var img\_array = [“prensa\_14”, “sep\_ultim\_2”, “prensa\_13”, “sep\_ultim”, “prensa\_12”, “sep\_ultim\_2”, “prensa\_11”, “sep\_ultim”, “prensa\_10”, “sep\_ultim\_2”, “prensa\_09”, “sep\_ultim”, “prensa\_08”, “sep\_ultim\_2”, “prensa\_07”, “sep\_ultim”, “prensa\_06”, “sep\_ultim\_2”, “prensa\_05”, “sep\_ultim”, “prensa\_04”, “sep\_ultim\_2”, “prensa\_03”, “sep\_ultim”, “prensa\_02”, “sep\_ultim”, “prensa\_01”, “sep\_ultim\_2”];  
tnailer.onThumbLoad = function (mc)  
{  
var \_loc1 = mc;  
\_loc1.makeBorder();  
\_loc1.border\_color = new Color(\_loc1.border\_mc);  
display = “Ultimas Campañas " + (\_loc1.no + 1) + “/” + img\_array.length;  
};  
tnailer.onThumbsLoaded = function (null)  
{  
display = “”;  
};  
tnailer.onThumbOver = function (mc)  
{  
mc.border\_color.setRGB(null);  
};  
tnailer.onThumbOut = tnailer.onThumbReleaseOutside = function (mc)  
{  
if (mc != this.active)  
{  
mc.border\_color.setRGB(null);  
} // end if  
};  
tnailer.onThumbRelease = function (mc)  
{  
var \_loc2 = mc;  
this.active.border\_color.setRGB(null);  
this.active = \_loc2;  
_loc2.border\_color.setRGB(null);  
mc.border\_color.setRGB(null);  
getURL ("javascript:NewWindow=window.open([COLOR=“YellowGreen”]’…/images/noticias/flash/prensa_” + \_loc2.no + “.swf’[/COLOR], ‘newWin’, ‘width=775, height=531, left=95, top=147, toolbar=No,location=No,scrollbars=No,status=No,resize=No,fullscreen=No’); NewWindow.focus(); void(0);”);  
};  
tnailer.loadThumbnails(img\_array, “…/images/noticias/flash/thumbs/”);  
display = “Cargando Ultimas Campañas 1/” + img\_array.length;

the issue is marked in green. if i just ask it to load the same file for all thumbnails there is no problem, but when i ask it to look for a specific file using \_loc2.no var it does nothing.

please help!!! and thanks :kir:
