Well there’s a surprise. Yet another problem with IE, this time the problem is with swfObject 2 which although compatible with pretty much every browser the param.

<script type="text/javascript" src="/scripts/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.myVariable = 1;
var params = {};
var attributes = {};
attributes.id = "flashboot";
attributes.wmode = "transparent";
attributes.base = "/area51/flash/";

swfobject.embedSWF("/area51/flash/bootstrap.swf", "flash-replace", "963", "444", "10.0.0", false, flashvars, params, attributes);
</script>

As you can see the above code is very much the standard way to insert a Flash .swf file in to a page should the correct version of Flash be installed (in this case 10.0.0).

The .swf files currently under development are in a sub directory off from the root of my main site so it is necessary for me to use the ‘base’ attribute. As usual this works perfectly in Firefox but doesn’t work at all in IE.

I’m almost sick and tired of all the things wrong with IE. Before Firefox 3.6 came out and they had corrected the henous bugs and slowness of playing Flash in Firefox, IE was easily the fastest browser for Flash/AS3. The trouble with IE is just everything else.

Anyone know of the way to fix this in IE??

5 comments

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>