You need the crossdomain.xml policy file on the server with the file you are loading, it should look something like this:
<?xml version="1.0"?> <cross-domain-policy> <allow-access-from domain="www.friendOfFoo.com" /> <allow-access-from domain="*.foo.com" /> <allow-access-from domain="105.216.0.40" /> </cross-domain-policy>
Put it as crossdomain.xml in the root of the domain from which you are downloading.
You also need to install a bootloader to read this file as such:
var loaderContext:LoaderContext = new LoaderContext(); loaderContext.checkPolicyFile = true; var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onComplete ); loader.load( new URLRequest( "http://my.domain.com/image.png" ), loaderContext );
sample code extracted from http://blog.log2e.com/2008/08/15/when-a-cross-domain-policy-file-is-not-enough/
source share