for (i=0; i<linx.length; i++) { _root["butt_"+i].link = linx[i]; _root["butt_"+i].onRelease = function() { getURL(this.link, "_blank"); }; }