This project is archived and is in readonly mode.

#541 ✓invalid
a2co

window.open from flash: conflict with mootools only on ie

Reported by a2co | January 7th, 2009 @ 11:28 AM | in 2.0 (closed)

ciao a tutti! hi guys! :)

i've a problem with the opening of a popup, only on ie 6 and 7 (firefox and safari semmes to workfine).

i wanna open the pop up from an swf, and im using mootools.

this is the as code for my swf:

MovieClip.prototype.openCenterPopUp = 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);");

};

legalStatement.onRelease = function() {

openCenterPopUp("legalStatementPopUp.html", "", 550, 520, "status=no, toolbar=no, scrollbars=yes");
trace("apertura popup");

}

...and this is the little js where i embed the swf on the domready window.addEvent('domready', function(){

var swfo = new SWFObject("swf/container.swf", "main", "100%", "100%", "9", "", false);
swfo.addParam("base", "swf");
swfo.addParam("allowFullScreen","true");
swfo.write("container");

});

can you tell me where is the mistake? i find a similar ticket about the window.open: http://mootools.lighthouseapp.co... the problem is the same...but, unfortunately, i think the solution is different.

thanks a lot :) bye bye.

Luca

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages