我在我的網站使用Adobe flash播放器,現在我需要增加一些數據庫中提交的內容,當用戶點擊播放器時。 這裏是腳本flash播放器:使用
<div id="conteiner" style="text-align: center;" ></div>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","420","380","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=<?=$video ?>");
s1.write("conteiner");
</script>
我deside使用AJAX它,但我怎麼能寫在Flash對象的功能? 由於事先
UPDATE: 我只有swfobject.js文件,其中包含這樣的數據
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7)
...
和player.swf
,和HTML,我已經媒體鏈接顯示。我現在不是這個Flash Player或不是,我該怎麼辦?
player.swf從哪裏來?你有源嗎?您需要修改它以向服務器發送更新數據庫的請求。 – 2010-04-14 18:52:14
@Sam看看請更新 – Simon 2010-04-14 19:32:15
你幾乎不走運。如果您沒有player.swf的原始來源,則無法更改它。從技術上講,你可以使用反編譯器,然後進行更改和重新編譯,但如果你沒有源代碼,你可能也沒有權限。 – 2010-04-15 00:35:22