Welcome to WebmasterWorld Guest from 50.19.34.234

Forum Moderators: open

Message Too Old, No Replies

Problem with Chrome

Chrome displays my flash twice

     

DarthDims

1:54 pm on Sep 19, 2011 (gmt 0)



Hi I have a problem, my index page contains a flash video file. IE and Firefox display the file correctly, but not Chrome. It show's it twice.

How can i solve this?

My index page is www.betako.mk

The site is still work in progress, only the index i uploaded so that I can ask for help:))

Any ideas are welcomed

rocknbil

3:52 pm on Sep 19, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



FYI, Show the code used, not a link to the site.

It's probably because you are using the old school <object><embed></object> method, and Chrome recognizes both elements even though embed nested inside <object> is invalid (X)HTML. Try looking at SWFObject [code.google.com] as your method of deploying Flash, it's pretty easy.

DarthDims

6:27 am on Sep 20, 2011 (gmt 0)



This is my code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" align="top" id="FlashID">
<embed src="img/top_banner.swf" width="100%" height="100%" align="top" quality="high"></embed>
<param name="movie" value="img/top_banner.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object data="img/top_banner.swf" type="application/x-shockwave-flash" width="100%" height="100%" align="top">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><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" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

I use the object/ embed nesting because it was the only way to get firefox to display the flash file.

rocknbil

3:57 pm on Sep 20, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Right, that's pretty common and there's a couple things about that code that are problematic . . . Play with SWFObject, you'll like it. :-)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month