DreamWave
DreamWave

Reputation: 1940

IE 8 flash not displaying

I'm using flash in a few of my websites for displaying a slideshow. This is the code I use in splendor-bg.com :

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="450" id="tech" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="splendor-bg.swf?xml_path=slides.xml" />
        <param name="quality" value="high" />
        <embed src="splendor-bg.swf?xml_path=slides.xml" quality="high" width="720" height="430" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

I can see it on my computer in internet explorer just fine (I must have installed something that is needed, or set up IE in some way, I guess).. but its not working on quite a few other computers I've tested it on - this is what they see: Flash not working Does anyone have an idea on how to fix this? Either a message of something that needs to be installed should be shown to the user, or something in the code itself.. Any help will be greatly appreciated!

Upvotes: 0

Views: 623

Answers (1)

J&#243;n Trausti Arason
J&#243;n Trausti Arason

Reputation: 4698

I'm not sure what the problem may be in this particular code.

However, I would like to suggest that you try swfobject. You can download it at http://code.google.com/p/swfobject/

swfobject is a great way to embed flash to a website and seems to work in all browsers for me.

It's also very simple to use, let's assume you have a div container with the id flashcontent:

<div id="flashcontent">
</div>

And then with javascript you would simply do:

<script type="text/javascript">
    var flashvars = {};
    var params = {allowScriptAccess: "sameDomain"};
    var attributes = {};
    swfobject.embedSWF("splendor-bg.swf?xml_path=slides.xml", "flashcontent", "720", "430", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>

Voila and the Flash object should be embedded over the flashcontent div container.

Give it a try and see if it works better. You can read the swfobject documentation at http://code.google.com/p/swfobject/wiki/documentation

Upvotes: 1

Related Questions