Link to home
Start Free TrialLog in
Avatar of cristobal_ny
cristobal_ny

asked on

shrinked swf in internet explorer 8 with swfobject

Hello

I am using swfobject to embed an swf and I'm having a problem with internet explorer 8. The flash website is reduced to a ridiculous miniature, when it should be filling up the browser window.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<script type="text/javascript" src="swfobject.js"></script>
		<script type="text/javascript">
			swfobject.registerObject("myFlashContent", "8.0.0", "expressInstall.swf");
		</script>
    <style type="text/css">
    body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}


    </style>
    

	</head>
<body>
		<div>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="myFlashContent" align="bottom">
	      <param name="movie" value="gliko_sm.swf" />
				<param name="scale" value="showall" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="gliko_sm.swf" width="100%" height="100%" align="bottom">
					<param name="scale" value="showall" />
				<!--<![endif]-->
					<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>
				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		</div>
	</body>
</html>

Open in new window

Avatar of deepanjandas
deepanjandas
Flag of India image

Try this:

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">	
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <style type="text/css" media="screen"> 
	    html, body { height:100%; }
	    body { margin:0; padding:0; overflow:auto; text-align:center; 
		  background-color: #ffffff; }   
		  object:focus { outline:none; }
		  #flashContent { display:none; }
        </style>
		    
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
            var swfVersionStr = "10.0.0";
            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
            var xiSwfUrlStr = "playerProductInstall.swf";
            var flashvars = {};
	    	//flashvars.GroupCode = "Arsenal";
            var params = {};
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";
            var attributes = {};
            attributes.id = "Flash";
            attributes.name = "Flash";
            attributes.align = "middle";
            swfobject.embedSWF(
                "gliko_sm.swf", "flashContent", 
                "100%", "100%", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
			<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
			swfobject.createCSS("#flashContent", "display:block;text-align:left;");
        		 </script>

        
    </head>
    <body>
        <div id="flashContent">
        	<p>
	        	To view this page ensure that Adobe Flash Player version 
				10.0.0 or greater is installed. 
			</p>
			<script type="text/javascript"> 
				var pageHost = ((document.location.protocol == "https:") ? "https://" :	"http://"); 
				document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" 
								+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); 
			</script> 
        </div>
	   	       	   </body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of cristobal_ny
cristobal_ny

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cristobal_ny
cristobal_ny

ASKER

The answer given to me still had problems and I found an alternative solution