homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Any ideas why this Flash page won't work in FireFox but will in IE
JaYKay_01




msg:4031700
 6:36 pm on Nov 25, 2009 (gmt 0)

<snip>

[edited by: eelixduppy at 5:10 pm (utc) on Nov. 26, 2009]

 

rocknbil




msg:4031734
 7:20 pm on Nov 25, 2009 (gmt 0)

Welcome aboard JayKay_01, see TOS [webmasterworld.com], #13.

Here is the code, anonymized:


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"
width="990" height="500" id="RedGeckoIntro2">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Flash/your-flash-file.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
</object>

Moz browsers need <embed>, IE and others, <object>. But IE will display <embed> too, putting two on the page.

The "old school" method of cross browser support is to include the embed tag inside the object tags, like

<object>
.....
<embed>
</object>

This is how Macromedia and Adobe "publish" the code to this day.

Unfortunately, it's invalid HTML.

The most graceful way I've found, and will allow you to validate: swfObject [code.google.com]. Simple to implement, it displays alternate content first so if JS and/or Flash is disabled, you still get a layout and content. If enabled, swfObject writes the Flash to the element. Best of both worlds.

JaYKay_01




msg:4032121
 10:51 am on Nov 26, 2009 (gmt 0)

Hi rocknbil, sorry about posting my link I should have read the TOS first.

Thanks very much for the info. I've implemented swfObject ver 2 and works a treat on all browsers, tried uninstalling Flash and all the scripts and links worked great too. Thanks again!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved