questa è la funzione centra:
codice:
Movieclip.prototype.centra = function (nome,titolo,feat){
trace (w);
var w = System.capabilities.screenResolutionX/2;
if(w <= 800){
lar = 700;
alt = 300;
} else {
lar = 950;
alt = 600;
}
var h = System.capabilities.screenResolutionY/2;
var x = Math.round(w-(lar/2));
var y = Math.round(h-(alt/2));
getURL("javascript:window.open('"+ nome + "','" + titolo + "','width=" + lar + ",height=" + alt + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + "," + feat + "');void(0);");
}
e al pulsante ho associato:
codice:
on (release){
centra('test.html','mia','status=yes');
}
Non capisco... :master: perché non funziona.
dies