現在,我真的厭倦了Facebook的crossdomain.xml,終於得到它從服務器加載圖片的工作。現在我需要使用Flash從我的應用程序加載變量。我收到這個錯誤。Facebook的政策文件錯誤
Error: [strict] Ignoring policy file at http://apps.facebook.com/crossdomain.xml due to incorrect syntax. See http://www.adobe.com/go/strict_policy_files to fix this problem.
*** Security Sandbox Violation ***
Connection to http://apps.facebook.com/feline-frenzy/endpoints/challengewin/ halted - not permitted from http://media.varheroes.com/flash/endpointstest.swf
Error loading data
Error: Request for resource at http://apps.facebook.com/feline- frenzy/endpoints/challengewin/ by requestor from http://media.varheroes.com/flash/endpointstest.swf is denied due to lack of policy file permissions.
任何解決方案?
這裏是我的代碼:
Security.loadPolicyFile("http://api.facebook.com/crossdomain.xml");
Security.allowDomain("*");
Security.allowInsecureDomain("*");
myData = new LoadVars()
myData.load("http://apps.facebook.com/feline-frenzy/endpoints/challengewin/")
myData.onLoad = function(succes){
if(succes){
trace("DATA SAVED!!!1");
} else trace ("Error loading data")
}
請提交新的錯誤 http://bugs.developers.facebook.net/show_bug.cgi?id=10665 – 2011-01-22 14:38:32