Flash and IE6 Although you develop and design for IE7 and FireFox, there are still a massive amount of end users in the IE6 world. You’d think everyone would be on board by now, but not really.

I did a poll around the office and it turns out, 4 out of 9 workstations are still using Internet Explorer 6. Baffling.

So here’s the scenario.

You create a simple Flash presentation that will be embedded in a HTML document. Testing in IE7 and FireFox works fine, but in IE6 nothing.

There is a solution.

It’s as simple as adding the script tag:

<script type="text/javascript" src="swfobject.js"></script>

Then you add something simple like this in your HTML page

<script type="text/javascript">

    // <![CDATA[

    var so = new SWFObject("Your_Flash_File.swf", "TestFile", "100%", "100%", "8", "#FF6600"); 
    so.addParam("scale", "noscale");

    so.write("flashcontent");

    // ]]>

</script>


Where you will need to go:

http://code.google.com/p/swfobject/ - Google Code swfobject

http://blog.deconcept.com/swfobject/ for the source code files and further examples

Posted by Anton on Tuesday, May 6th, 2008

Post A Comment