View Full Version : Firefox shrinking flash file
maebeeso
06-10-2008, 09:01 PM
Hi All, Firstly I want to say a big thank you because all of the thread keepers have managed to help me build my very first flash website for charity. Way cool. My only problem is that the website works great in explorer and safari but it shrinks it in Firefox. Can anyone help me with this? www.celebratesafely.com.au is the website. Cheers
Medyman
06-10-2008, 10:57 PM
Hey Maebesso,
I don't really know that embed code. It might be the Flash 8 default embed code, but I usually don't use it because it always gives me troubles.
You should use SWFObject (http://blog.deconcept.com/swfobject/) to embed your flash. It'll get rid of a whole host of issues with embedding flash.
nate51
06-11-2008, 08:58 PM
wow your index page looks like it has a lot of code in there that is messing things up in FireFox.
If you have DreamWeaver try embedding the swf file in there and the new version of DreamWeaver CS3 saves your pages with the automatic js code to pass the activeX control issues. But for now for this site try using this as your index page.
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Celebrate Safely</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #000000;
}
-->
</style>
<script src="swfobject.js" type="text/javascript"></script>
</head>
<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="750"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','750','height','1100','src','index','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','index' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="750" height="1100">
<param name="movie" value="index.swf" />
<param name="quality" value="high" />
<embed src="index.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="1100"></embed>
</object></noscript></td>
</tr>
</table>
</body>
</html>
Save the SWFObject file Medyman was talking about and upload it to the directory your index.html and swf file are located.
Hope that helps.
stevemitch2
06-17-2008, 03:19 PM
ca anyone suggest any changes to code in an html file that shows a flash intro so that it actually displays in firefox, here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Mr Stephen Hairdressing - Bournemouth</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #412615;
}
-->
</style></head>
<BODY>
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="747" height="797">
<param name="movie" value="flash/intro8_cs_b3.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<!--[if !IE]> <-->
<object data="flash/main1.swf"
width="747" height="797" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></center>
</BODY>
</HTML>
The site is here:
http://www.mrstephen.co.uk
Many thanks for any help
regards steve
Medyman
06-17-2008, 07:10 PM
Use SWFObject for a cross-browser javascript-based solution. I've linked to it in my last post in this thread.
stevemitch2
06-17-2008, 07:35 PM
Hi
Thanks but not sure what im doing wrong but nothing displays when testing here: http://www.mrstephen.co.uk/index_2.html
<script type="text/javascript">
var so = new SWFObject("movie.swf", "intro8_cs_b3.swf", "747", "100%", "797", "#412615");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
</script>
Medyman
06-17-2008, 07:51 PM
You need a lot more than just THAT code to get the page to work.
You don't have any HTML markup on that page.
Have a look at the documentation (http://code.google.com/p/swfobject/wiki/documentation) for a full set of instructions.
stevemitch2
06-17-2008, 08:54 PM
OK Done that and firefox still displays the second part under "alternative content" and does not load the flash??
Medyman
06-18-2008, 01:08 PM
Did you include a link to the external .js file in your <head> section? Do you have javascript turned on?
stevemitch2
06-18-2008, 01:56 PM
Hi
here is the code:
<!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>Mr Stephen Hairdressing - Bournemouth</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #412615;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="747" height="797">
<param name="movie" value="flash/intro8_cs_b4.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/intro8_cs_b4.swf" width="747" height="797">
<!--<![endif]-->
<p>Install Flash Player</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body></html>
It seems to display in firefox now as long as flash is installed BUT now i have a white area that hangs around till it changes colour to the brown far longer. Is there anything i can do about this?
http://mrstephen.co.uk/index_2.html
Thank you
Medyman
06-23-2008, 05:10 AM
I'm not sure if that background is in the flash or not. If it is, there isn't anything you can do about it outside of Flash. If you have access to the .fla, you can simply remove whatever graphic/drawing is creating that color.
If it isn't in the Flash, you can pass a parameter to set either the background color to the brown or the wmode to transparent.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_4150
tonyking
07-07-2008, 09:58 PM
I am not a flash guru, but I get the white box in every browser, and it looks like it's part of the flash movie. (if you right click it you get the controls) Once the pre-loader script dwindles out, it seems to go away, so I would look into your pre-loader.
I think if change the background of your pre-loader/progess bar to transparent and I'll bet money it goes away.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.