I'm tring to open a pop up with this script in the main timeline of the movie:
Movieclip.prototype.centra = function (nome,titolo,lar,alt,feat){
var w = System.capabilities.screenResolutionX/2;
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);"
;
}
and in the button:
on(release){
centra('pippo.htm','mia',700,300,'status=yes');
}
but all i see is a blank window with a text:"object" and an empty popup.
Perhaps the problem is in the location of my movie. It is in the _level2, after loadin from the _root movie with loadmovie("_level2"
.
Thanks to everybody!!!
Movieclip.prototype.centra = function (nome,titolo,lar,alt,feat){
var w = System.capabilities.screenResolutionX/2;
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);"
}
and in the button:
on(release){
centra('pippo.htm','mia',700,300,'status=yes');
}
but all i see is a blank window with a text:"object" and an empty popup.
Perhaps the problem is in the location of my movie. It is in the _level2, after loadin from the _root movie with loadmovie("_level2"
Thanks to everybody!!!