搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

my websites SWF.flash files are working on IE but not firefox, help please?

  • 12 回覆
  • 8 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

i Have a portfolio built with flash on my new website which works fine with IE but not firefox, is there some extra coding i need to add to make it show up in firefox?

i Have a portfolio built with flash on my new website which works fine with IE but not firefox, is there some extra coding i need to add to make it show up in firefox?

被選擇的解決方法

This code should work:


<object data="/userfiles/flash/FINE ART FLASH.swf" type="application/x-shockwave-flash" height="450" id="FlashID" width="700">
<param name="allowFullScreen" value="true" />
<param name="loop" value="false" />
<param name="play" value="false" />
<param name="scale" value="exactfit" />
<param name="movie" value="/userfiles/flash/FINE ART FLASH.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#303030" />
<param name="allowScriptAccess" value="samedomain" />
<param name="swfversion" value="9.0.45.0" />
</object>
從原來的回覆中察看解決方案 👍 0

所有回覆 (12)

more options

Make sure that the src (data) URL for Firefox is the same as for IE.

Can you post a link?

more options

O.k thanks i'll take at look at that now, here is the link if you you'd like to take a look. (link removed, problem solved)

由 newbewt 於 修改

more options

I can't access that page. So maybe you can post the code.

Forbidden You don't have permission to access /index.php on this server.
more options

oh sorry, you should be able to access it now

more options

There is only an OBJECT with a classid that specifies an ActiveX object for IE.
Firefox ignores such an OBJECT.
You either need to remove the classid and add the .swf URL as a data attribute (data="/userfiles/flash/FINE ART FOLIO(final).swf") and type="application/x-shockwave-flash" or add a second OBJECT for Firefox.

I see that you specify 3 movie files;

FINE ART FOLIO(final).swf
FINE ART FOLIO2.swf
FINE%20ART%20FOLIO(800).swf

Which is the one to use?


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="450" id="FlashID" width="750">
<param name="quality" value="high" />
<param name="movie" value="/userfiles/flash/FINE ART FOLIO(final).swf" />
<param name="quality" value="high" />
<param name="movie" value="/userfiles/flash/FINE ART FOLIO2.swf" />
<param name="quality" value="high" />
<param name="movie" value="/userfiles/flash/FINE%20ART%20FOLIO(800).swf" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#303030" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="swfversion" value="9.0.45.0" />
</object>

 <!--[if !IE]>-->
  <object data="/userfiles/flash/FINE ART FOLIO(final).swf" height="450" id="FlashID" width="750" type="application/x-shockwave-flash">
   <param name="quality" value="high" />
   <param name="wmode" value="transparent" />
   <param name="bgcolor" value="#303030" />
   <param name="allowScriptAccess" value="always" />
   <param name="allowFullScreen" value="true" />
   </object>
 <!--<![endif]-->
</object>
more options

I've cleared out the other files, they were older versions that were still on my server, sorry bout that.

Just on removing the classid could you post what the old code and the new code should look like please.

heres the URL for the flash file /userfiles/flash/FINE ART FLASH.swf

more options

選擇的解決方法

This code should work:


<object data="/userfiles/flash/FINE ART FLASH.swf" type="application/x-shockwave-flash" height="450" id="FlashID" width="700">
<param name="allowFullScreen" value="true" />
<param name="loop" value="false" />
<param name="play" value="false" />
<param name="scale" value="exactfit" />
<param name="movie" value="/userfiles/flash/FINE ART FLASH.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#303030" />
<param name="allowScriptAccess" value="samedomain" />
<param name="swfversion" value="9.0.45.0" />
</object>
more options

Brilliant!!!! worked perfect, thanks a million, just wondering should i delete this post now?

more options

You can click the "Solved it" button next to the answer that solved your problem to indicate that you solved your problem.

You only see "Solved It" button next to each answer if you have signed in to this forum.

more options

no worries, thanks again

more options

just noticed something, is there a way to block people downloading it using firefox.

i've noticed some sites there flash isn't downloadable with download helper

would like to do this to my site if possible

more options

You can't prevent a Flash SWF file from downloading and getting saved because Firefox will save that file in the cache anyway.

If you want to prevent visitors from saving content then you should retrieve that content via a secure connection in the Flash plugin.
Then you won't see the links show in the cache.