Flash in IE8

I embedded a .swf file in an .aspx page and published to the web. It was fine.
Then I got reports that in IE8 the Flash piece was rendering too small on the page for users to view.
Was this a browser issue?
I also found out it was appearing small in Firefox.
 
Okay, so to fix the problem I had to change the properies in the embed tag. Notice the width=800px x 600px - I just guessed at how big to make it.
I had previously had it at 100% x 100% but since the .fla file was originally created much smaller, I dunno, like 300x200, it was appearing on the web page this size.
Fixing this code in the embed tag fixed the problem.
 
 
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="89%" id="myFullScreenFlashPlayer" ALIGN=""> <param name=movie VALUE="Flash/EliasSuperCalc.swf" /> <param name=quality VALUE=high /> <param name=bgcolor VALUE=#FFFFFF /> <EMBED src="Flash/EliasSuperCalc.swf" quality=high bgcolor=#FFFFFF WIDTH="800px" HEIGHT="600px" NAME="myFullScreenFlashPlayer" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

</

OBJECT>
 
Note: If you wrap the object in a div tag, be sure to put pixel width x height large enought to fit the movie.
Comments