Hello,
Last week we got an IE 11 (henceforth referred to as the pig) update which has caused a few problems for us. The one I need to fix first is with embedding SWFs. I am using swfobject v2.2.
The problem is that I can’t seem to control the width of the SWF like I could in the past. So, the SWF embeds wide but short, neither of which are desirable. It’s as if the div controls the dimensions of the SWF. Another symptom of this problem is that if the SWF has any content off to the side, not meant to be seen, it now is visible due to the width problem.
Another critical piece of information is that I cannot change the div as this GUI uses JS/jQuery for dynamic content.
Any help would be appreciated.
The HTML
<div align="center"><div id="scenario" /></div>
<script type="text/javascript">
loadAnySWF("06_capstone/cyber_scenario.swf", "scenario", 600, 800);
</script>
The JS/swfobject:
function loadAnySWF(swf_url, div_id, ww, hh, dataSrc)
{
try
{
alert("In loadanyswf" + swf_url + div_id + ww + " " + hh + "data = " + dataSrc);
var flashvars = {};
flashvars.dataSrc = dataSrc;
var params = {};
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF(swf_url, div_id, ww , hh, "9.0.0", false, flashvars, params, attributes);
}
catch(err)
{
$("#" + div_id).html('<img src="course_assets/flash_error.png" /><br/><div class="error_code">' + err + '</div><br/>');
}
}