Forum Moderators: open

Message Too Old, No Replies

Code Problems between IE and FF

Flash width problems

         

discoverypro

12:07 pm on Apr 22, 2008 (gmt 0)

10+ Year Member



I have a question about this code--

I am trying to make this flash work in both IE and FF. I have can make it work if I write it certain ways.

I need help in getting this to work for both.

<!-- #2a Top Navigation Bar-->

<!-- and this code works for IE but not FF-->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="808" height="41" id="Flash1">
<param name="movie" value="Topflash.swf">
<param name="quality" value="High">
<param name="scale" value="ExactFit">
<param name="wmode" value="Window">
<param name="play" value="true">
<param name="loop" value="false">
<param name="menu" value="false">
<param name="sAlign" value="L">
<embed src="Topflash.swf" width="808" height="41" quality="High" wmode="Window" loop="false" play="true" menu="false" scale="ExactFit" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>

</div>


<!-- and Yet this code works for FF but not IE?-->


<!-- #2a Top Navigation Bar-->

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="708" height="41" id="Flash1">
<param name="movie" value="Topflash.swf">
<param name="quality" value="High">
<param name="scale" value="ExactFit">
<param name="wmode" value="Window">
<param name="play" value="true">
<param name="loop" value="false">
<param name="menu" value="false">
<param name="sAlign" value="L">
<embed src="Topflash.swf" width="708" height="41" quality="High" wmode="Window" loop="false" play="true" menu="false" scale="ExactFit" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>

</div>

<!-- it seems off by 100 px exactly-->

discoverypro

3:56 pm on Apr 22, 2008 (gmt 0)

10+ Year Member



Nevermind--I figured it out...

I had to change my width settings to 100% instead of 708 or 808. Now it works in both IE and FF.

GEZZ--was getting stupified for a minute...

DP

rocknbil

2:48 am on Apr 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard discoverypro, but you are probably still getting the gray line around your Flash in IE, aren't you?

Look into SWFObject, an open source library for managing Flash in pages. It gets rid of the gray line, makes for cleaner code that degrades nicely, and gets rid of the deprecated embed element. I think you'll like it.

discoverypro

10:20 am on Apr 23, 2008 (gmt 0)

10+ Year Member



Actually I think they look pretty clean. I have two flashes on each page.

I am a Professional home Inspector by trade --not a web designer--but I kinda of like what i have put together. With the help of a good friend of mine i started to play around with flash and adding code in here and there.

-- thanks for the nice welcome here....

DP

[edited by: tedster at 6:04 pm (utc) on April 23, 2008]

discoverypro

10:23 am on Apr 23, 2008 (gmt 0)

10+ Year Member



This is the Actual code for both flashes on this page.

<div id="quicknav">
<!-- #2a Top Navigation Bar-->
<embed src="Topflash.swf" width="100%" height="41" wmode="window" loop="false" play="true" menu="false" scale="ExactFit"type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>

</div>

<!-- End BRANDING DIV -->
</div>

<!-- #3. Content Wrap -->
<div id="content" class="c clear_children">

<!-- #4. Site Navigation -->
<div id="nav_main" class="lc">
<h2>Site Navigation</h2>
<embed src="flashvortex.swf" width="145" height="300" wmode="Transparent" play="true" menu="false" scale="ExactFit" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>

</div>