0
我有一個Facebook應用程序,它適用於fbjs/flash/python。從昨天起,我一直在收到以下安全錯誤。FBJS-BRIDGE,從昨天開始停止工作?
*** Security Sandbox Violation ***
SecurityDomain 'http://apps.facebook.com/feline-frenzy/bridgetest/' tried to access incompatible context 'http://static.ak.fbcdn.net/rsrc.php/z71HX/hash/4h1ls3l8.swf'
雖然相同的代碼在前些天工作正常。經過檢查,當fbjs橋想要發送閃光燈的東西。以下是我的代碼。
MY FBML:
<fb:fbjs_bridge/>
<div id="swfContainer"></div>
<script>
var swf = document.createElement('fb:swf');
swf.setId('my_swf_id');
swf.setWidth('630');
swf.setHeight('520');
swf.setSWFSrc('http://media.varheroes.com/flash/bridge.swf');
document.getElementById('swfContainer').appendChild(swf);
document.getElementById('my_swf_id').callSWF('asMethod', 'one', 'two');
</script>
<script>
<!--
function flashtest(){
document.getElementById('my_swf_id').callSWF('asMethod','fahim','akhter');
}
-->
</script>
<div id="crap">
<a href="#" onclick="flashtest();">FLASH TEST</a><br/>
</div>
MY ActionScript代碼:
var connection:LocalConnection = new LocalConnection();
var connectionName:String = LoaderInfo(this.root.loaderInfo).parameters.fb_fbjs_connection;
connection.allowDomain("apps.facebook.com", "apps.*.facebook.com");
connection.client = {
asMethod: function(paramOne:String, paramTwo:String) {
// do something in the SWF
var test:String = "DATA RECIEVED FROM JAVASCRIPT : "+paramOne+" "+paramTwo;
callSetText("DATA RECIEVED FROM JAVASCRIPT");
}
};
connection.connect(connectionName);
錯誤開始發生像昨天我說首先它是工作的罰款。
還在悲傷等待 –