0

我必须在我的 Flash Facebook 应用程序 (iframe) 中加载用户的个人资料图片。但是加载它有一些不寻常的东西。我的加载代码是:

var context1:LoaderContext = new LoaderContext();
var req:URLRequest = new URLRequest("http://graph.facebook.com/" + uidvar + "/picture?type=large");

Security.loadPolicyFile("http://graph.facebook.com/crossdomain.xml");
Security.loadPolicyFile("http://profile.ak.fbcdn.net/crossdomain.xml");
Security.allowDomain("*");
Security.allowInsecureDomain("*");

context1.checkPolicyFile = true;
loader.add(req, {id:"profilephoto", context:context1}); // I defined the "loader" as a BulkLoader object before.
loader.start();

但是当我在 Firefox 中调试 swf 时,它说

错误 #2044:未处理的安全错误:。text=Error #2048:安全沙箱违规:MYSWFURL无法从FACEBOOK IMG URL加载数据

对我来说,一切都很完美,但我遇到了这个错误。为什么?

4

0 回答 0