2010-07-27 91 views
1

我在Flash電影上顯示覆蓋區域「Please wait ...」時出現問題,即使絕對定位和z-index比閃光電影本身高。但覆蓋div仍然在閃電影。這是爲什麼?我認爲這與嵌入/ param標籤有關,但我不確定,請有人就此提出建議。swf閃存電影上的HTML覆蓋

下面的代碼:

<noscript> 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
     id="OrderMap" width="100%" height="100%" 
     codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> 
     <param name="FlashVars" value="OpenSpaceURL=http%3A%2F%2Fosdrsun02%3A7780%2Fosmapapi%2Fts%3FFORMAT%3Dimage%2Fpng%26KEY%3D6AE337502C265274E040007F010017F1%26URL%3Dhttp%3A%2F%2Flocalhost%3A8080%2F%2FOpenSpaceTilesTest.html%26SERVICE%3DWMS%26VERSION%3D1.1.1%26REQUEST%3DGetMap%26STYLES%3D%26EXCEPTIONS%3Dapplication%2Fvnd.ogc.se_inimage%26SRS%3DEPSG%3A27700" /> 
     <param name="movie" value="OrderMap.swf" /> 
     <param name="quality" value="high" /> 
     <param name="bgcolor" value="#ffffff" /> 
     <param name="allowScriptAccess" value="sameDomain" /> 
     <embed src="swf/OrderMap.swf" quality="high" bgcolor="#ffffff" 
      width="100%" height="100%" name="OrderMap" align="middle" 
      play="true" 
      loop="false" 
      quality="high" 
      allowScriptAccess="sameDomain" 
      type="application/x-shockwave-flash" 
      pluginspage="http://www.adobe.com/go/getflashplayer"> 
     </embed> 
</object> 

非常感謝

回答

1

將wmode設置爲不透明也將讓您過度閃光的上面一層HTML元素,並會增加你的表現,原因是其不渲染Flash影片下面什麼,不像透明的wmode關注自身。我不確定這是否會解決你滾動問題。

1

您需要設置的wmode透明(兩個元素),並確保您的重疊div有較高的z-index比你的Flash電影。這是你的更新代碼。

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
     id="OrderMap" width="100%" height="100%" 
     codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" 
     wmode="transparent"> 
     <param name="FlashVars" value="OpenSpaceURL=http%3A%2F%2Fosdrsun02%3A7780%2Fosmapapi%2Fts%3FFORMAT%3Dimage%2Fpng%26KEY%3D6AE337502C265274E040007F010017F1%26URL%3Dhttp%3A%2F%2Flocalhost%3A8080%2F%2FOpenSpaceTilesTest.html%26SERVICE%3DWMS%26VERSION%3D1.1.1%26REQUEST%3DGetMap%26STYLES%3D%26EXCEPTIONS%3Dapplication%2Fvnd.ogc.se_inimage%26SRS%3DEPSG%3A27700" /> 
     <param name="movie" value="OrderMap.swf" /> 
     <param name="quality" value="high" /> 
     <param name="wmode" value="transparent"> 
     <param name="bgcolor" value="#ffffff" /> 
     <param name="allowScriptAccess" value="sameDomain" /> 
     <embed src="swf/OrderMap.swf" quality="high" bgcolor="#ffffff" 
      width="100%" height="100%" name="OrderMap" align="middle" 
      play="true" 
      loop="false" 
      quality="high" 
      allowScriptAccess="sameDomain" 
      type="application/x-shockwave-flash" 
      pluginspage="http://www.adobe.com/go/getflashplayer"> 
     </embed> 
</object> 
+0

我只是試過你的答案,它的工作原理,但電影似乎現在效率較低。基本上這部電影是英國的swf地圖,所以它用鼠標滾輪放大和縮小。修改嵌入/參數標籤後,縮放不再起作用,你知道爲什麼嗎? (對不起推) – Shaoz 2010-07-27 11:15:34

+0

啊,是的,我聽說過之前的錯誤 - 鼠標滾輪在使用wmode時不起作用。不幸的是,並不容易解決。看看這篇文章http://cookbooks.adobe.com/index.cfm?event=showdetails&postId=13086 – Marko 2010-07-27 11:29:00

+0

感謝您的幫助,我會檢查鏈接... – Shaoz 2010-07-28 09:31:03