錯誤訊息
*** Security Sandbox Violation ***
SecurityDomain 'http://test.com/test1.swf' 嘗試存取不相容的內容 'file:///C|/website/test2.swf'

發生原因
為了安全性理由,Flash 不允許跨網域存取,需加入安全性語法以啟用跨網域存取。

解決方式
允許 test.com 網域存取(不含 http to https)
Security.allowDomain("test.com");

允許所有網域存取(不含 http to https)
Security.allowDomain("*");

允許 http 連接 https 的存取方式
Security.allowInsecureDomain("*");

相關連結:ActionScript 3.0 語言和組件參考,Security
2010/05/12 14:24 2010/05/12 14:24
2010/05/12 14:24 

Trackback Address :: 無法向此文章發送引用


[1]... [16][17][18][19][20][21][22][23][24]... [419]