I have to load user's profile image in my flash Facebook app (iframe). But there is something unlikeable with loading it. My loading code is:
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();
But when I debug the swf in Firefox it says
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: MYSWFURL cannot load data from A FACEBOOK IMG URL
For me, everything is perfect but I'm getting this error. Why?