PDA

View Full Version : SWF embeds weird on firefox



jxgoodgx
04 Sep 2009, 05:01 AM
Hi

I embeded a swf to a html.
It loads fine in safari but when in firefox it doesn't embed correctly.
what can be the problem here?

website link (http://www.johnnyantiques.com/strip)

try opening it in firefox
everythig is squashed to the top.

thank you in advance.

this is my code.

---


<body marginwidth="0" marginheight="0" bgcolor="#ffffff" scroll="no" onresize="rePositionStage();" topmargin="0" leftmargin="0">

<object id="base" width="100%" height="100%" align="" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">

<param value="main.swf" name="movie"/>
<param value="#FFFFFF" name="bgcolor"/>
<embed width="100%" height="100%" align="" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="base" bgcolor="#FFFFFF" src="main.swf"/>

</object>

<div style="visibility: hidden;">
<img border="0" align="absmiddle" src="http://stats.be.com.sg/stats2/stats.cfm?id=strp"/>
</div>


</body>

is_numeric
04 Sep 2009, 08:53 AM
you should have your flash movie in a container div and position that where you want it in the page using CSS

I can see that you have some inline styles in the <body tag.

You should steer the design using an external CSS style sheet.

Also you have a height attribute using % on your <object tag. Im not sure if this is valid. I think you have to define the dimensions in flash to get the best results. Using % will stretch and warp your movie on different screen sizes