Hi, i saw your tutorial on pop up with java and it worked perfectly. but i'm having an issue with my code when i try to use variables with it. i have a thumbnailslider and when i click a thumb i want it to open a certain file inm a pop up window: this is what i have up to now:
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('../images/noticias/flash/zoom/prensa_ + _loc2.no + .swf','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;
in red is the part with the issue. i call the var "loc2" to identify the file to open. but nothing happens...
i guess i have a stupid mistake with quotation marks or something, but i can't figure it out and im desperate.
thanks in advance!!!