Z5 Support - Latest News on Flash and Shockwave

Tag: IE

Dreamweaver CS3 flash code is this OK or should I stick with old version?

by admin on Dec.22, 2008, under Flash

I have just upgraded to CS3 and it is telling me that the flash files I have embedded using DW MX 2004 are wrongly embedded and may not work in some versions of internet explorer.

Here is the code that CS3 says I should be using, but I notice that it does cause errors in IE6 & 7. It appears OK, but I get the ‘done but with errors on the page’ message showing in the status bar:

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”200″ height=”200″ id=”FlashID” title=”Classroom”>
<param name=”movie” value=”images/movies/classroom1.swf”>
<param name=”quality” value=”high”>
<param name=”wmode” value=”opaque”>
<param name=”swfversion” value=”9.0.45.0″>
<!– This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. –>
<param name=”expressinstall” value=”../../Scripts/expressInstall.swf”>
<!– Next object tag is for non-IE browsers. So hide it from IE using IECC. –>
<!–[if !IE]>–>
<object type=”application/x-shockwave-flash” data=”images/movies/classroom1.swf” width=”200″ height=”200″>
<!–<![endif]–>
<param name=”quality” value=”high”>
<param name=”wmode” value=”opaque”>
<param name=”swfversion” value=”9.0.45.0″>
<param name=”expressinstall” value=”../../Scripts/expressInstall.swf”>
<!– The browser displays the following alternative content for users with Flash Player 6.0 and older. –>
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href=”http://www.adobe.com/go/getflashplayer”><img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash player” /></a></p>
</div>
<!–[if !IE]>–>
</object>
<!–<![endif]–>
</object>
</div>
<script type=”text/javascript”>
<!–
swfobject.registerObject(”FlashID”);
//–>
</script>

And this is the code I was using which I know doesn’t validate, but doesn’t give any errors in IE either:

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0″ width=”200″ height=”200″>
<param name=”movie” value=”images/movies/classroom1.swf”>
<param name=”quality” value=”high”>
<embed src=”images/movies/classroom1.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”200″ height=”200″></embed>
</object>

Which is better to use?

6 Comments :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!