Closed GoogleCodeExporter closed 9 years ago
Can you please provide a link to a complete test page, so it can be reviewed?
Original comment by aran.rhee@gmail.com
on 3 Dec 2009 at 11:08
absolutely
swfobject 2.1 :
http://vtz10.virtuoz.com/swfobject/index_2_1.htm
swfobject 2.2 :
http://vtz10.virtuoz.com/swfobject/index_2_2.htm
Original comment by benjamin...@gmail.com
on 4 Dec 2009 at 10:47
When it comes to handle cross browsing issues and AS-JS comunications using
SWFobject i usually give up...
Original comment by iriarte....@gmail.com
on 2 Jul 2010 at 3:53
Hi Benjamin
Your example is confusing: you're trying to wrap the <object> (Flash SWF) in a
<div> *after* embedding. This could possibly lead to ExternalInterface issues
because you're manipulating the DOM element containing the SWF after it has
embedded.
Your code:
function embed() {
var flashvars = {};
var params = { allowScriptAccess:"always" };
var attributes = {};
swfobject.embedSWF("Test.swf", "FlashContainer", "300", "300", "10", "expressInstall.swf", flashvars, params, attributes);
var wrapper = document.createElement('div');
wrapper.appendChild(document.getElementById("FlashContainer"));
document.body.appendChild(wrapper);
}
I suggest you add your wrapper *before* you embed the SWF, like so:
function embed() {
var wrapper = document.createElement('div');
wrapper.appendChild(document.getElementById("FlashContainer"));
document.body.appendChild(wrapper);
var flashvars = {};
var params = { allowScriptAccess:"always" };
var attributes = {};
swfobject.embedSWF("Test.swf", "FlashContainer", "300", "300", "10", "expressInstall.swf", flashvars, params, attributes);
}
I'm going to chalk this up as an implementation issue, not a SWFObject bug.
If you would like to pursue this further, feel free to post a follow-up with
additional information.
Thanks
Original comment by platelu...@gmail.com
on 17 May 2011 at 11:51
Original issue reported on code.google.com by
benjamin...@gmail.com
on 3 Dec 2009 at 3:03