我通過將Movie和Src params以及embed-tag的src屬性指向具有作爲QueryString文件名的HttpHandler來顯示flash對象。Flash 10和HttpHandler服務swf文件問題
<OBJECT codeBase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7.0.19.0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width="468" height="60">
<PARAM NAME="Movie" VALUE="/image.ashx?serverencoded=true&path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf">
<PARAM NAME="Src" VALUE="/image.ashx?serverencoded=true&path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf">
<embed src="/image.ashx?serverencoded=true&path=%2fapp_data%2fconfiguration%2faccount%2f21658260-9a62-425b-abb7-496ffde599a5%2fcreatives%2fswf_test_bannerA(4).swf&rnd=34d5" quality="high" wmode="opaque" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60">
</embed>
</OBJECT>
它與Falsh 9播放器的安裝完美配合。安裝Flash 10後,會顯示白色背景,當我右鍵單擊對象時,「未加載電影」在Flash上下文菜單中顯示爲禁用的菜單項。
如果我將Movie和Src params指向一個實際的swf文件,它可以工作!
記住:運行代碼與Flash 9的作品,但不是10.沒有變化的代碼在所有做...