Dalla root non riesco a far entrare il valore di una variabile dentro un funzione.
questo è il codice:
onClipEvent (enterFrame) {
this.onRelease = function() {
var nmr = _root.n;
var w = System.capabilities.screenResolutionX/2;
var h = System.capabilities.screenResolutionY/2;
var x = Math.round(w-(larg/2));
var y = Math.round(h-(alt/2));
var link = "./img_p/foto_"+nmr+".jpg";
getURL("javascript:window.open('"+link+"','FOTO',' width=200,height=100,screenX="+x+",left="+x+",scre enY="+y+",top="+y+"');");
};
}
la variabile nmr non prende il valore di _root.n. AIUTO!!!!!!!!