This content has been marked as final. Show 4 replies
In order for your swf to load data from a different domain it requires a crossdomain.xml permission file at the other server to grant access to the domain where your swf resides.
The other option is to proxy the request through a serverside script e.g. php from your own domain, so that for all intents and purposes, your swf assumes its loading the data from your domain.
So a file similar to the following needs to be placed in the root directory of the other site that you are loading from... with the domain name in the file granting permission to your site.
Thanks for the reply.
In the case bellow must I then make a reference to this xml file in the
I.e. System.security.loadPolicyFile(" http://foo.com/sub/dir/file.xml");
What about the php file. would you be kind to show me an example?
"GWD" <firstname.lastname@example.org> escreveu na mensagem
> In order for your swf to load data from a different domain it requires a
> crossdomain.xml permission file at the other server to grant access to the
> domain where your swf resides.
> The other option is to proxy the request through a serverside script e.g.
> from your own domain, so that for all intents and purposes, your swf
> its loading the data from your domain.
If its not in the root directory on the other site then yes you will need to load it first from the specific location. You normally don't need to do this if its in the main root location at the other site.
But there are some limitations with putting the file in a custom location. You should read this info:
If you have the crossdomain permission set up correctly then you don't need to use the php option to proxy the requests through your own domain. I've never needed to use it (yet) so I don't have an example to show you. But others here in the forum have so may post an example.