I have an application that is running on portal VK com. I need to load images (.png) from their domain (which are players avatars basicly). What I get is SecurityError: Error #2123
. It looks like in crossdomain.xml file on their domain there is no proper tag.
I've done following things:
- Set
allowSecurityDomain
to * in my swf I'm passing
LoaderContext
to Loader::load method defined like this:var context:LoaderContext = new LoaderContext(); var context.checkPolicyFile = true; loader.load(new URLRequest(img), context);
This is working on other portals (facebook, mojmir, odnoklassiniki, etc..) but not this one.
If you want to load images you can use the Image tag:
You won't have to deal with cross domain policy.
In AScript you can use: