SecurityError: Bug # 2122: Sandbox security violation

I have a Loader that loads a flickr image, then I draw () the contents of the loader. I am getting this error:

SecurityError: Bug # 2122: Sandbox security violation: LoaderInfo.content: mywebsite / myswf.swf cannot access flickr / imageurl. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. on flash.display :: LoaderInfo / get content ()

The Corssdomain.xml is loaded from flickr, I set the checkPolicyFile to true for the LoaderContext which I pass as the second parameter to the load () method. What am I missing?

+2


source to share


2 answers


This issue is similar to loading facebook images with actionscript as described here http://novacoders.blogspot.com/2011/04/loading-pictures-from-facebook.html



+3


source


Ok I figured out this problem. I was loading all images from static.flickr.com and where the crossdomain file came from. This url gave a 302 response status and the images did indeed come from farmX.static.flickr.com. Now I just changed the flickr url to farm4.static.flickr.com and everything is fine.



+2


source







All Articles