Ciao a tutti, ho un problema con flash mx 2004: non riesco a utilizzare un codice che usavo in precedenza per aprire popup.
Il codice che usavo in precedenza è questo:
-----------------------------------------------------------
MovieClip.prototype.apriPopupCentrata = 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);");
};
-----------------------------------------------------------
quando vedo il filmato in anteprima in swf mi da questo errore:
**Error** Scene=sito, layer=action, frame=1:Line 8: There is no property with the name 'capabilities'.
var w = System.capabilities.screenResolutionX/2;
**Error** Scene=sito, layer=action, frame=1:Line 9: There is no property with the name 'capabilities'.
var h = System.capabilities.screenResolutionY/2;
Total ActionScript Errors: 2 Reported Errors: 2
è come se non riconoscesse il System.capabilities. Come posso fare?