I have a project in Flash and I use a webserver with some data. I read that information (json) with:
var url:String = \"URL REQUEST\";
var request:URLRequest
This is a classic security error which is fired when an swf try to load content in another domain other than its own and didn't has authorization to do that. So to avoid this type of security error, you have to create a crossdomain.xml
file at the root of the server from where you want to load data. To more understand things, take a look on this schema ( taken, and edited, from Adobe Cross Domain Policy File) :
So in this case, to allow an swf file in a.com
to load data from b.com
, we have to add a crossdomain.xml
file in the root of b.com
, so we can access to it using b.com/crossdomain.com
. For the content of this file and more details about it, you can see the link above of the crossdomain specification. It can be like this :
I hope all this can help you to resolve your problem.