Reputation: 609
I have created flash application and can read data from server. I have finished my app and it is working well when I run from flash (fla file). But when it is exported to SWF file, it can't read data from server. I use preloader and it is still 0%. I use JSON for this app as data from server.
What I did until now:
Anyone had this problem too?
Upvotes: 0
Views: 178
Reputation: 39466
You need to place a crossdomain.xml
file on the root of the server that the data is being requested from. There are some examples and guidelines here.
Here's one of the least restrictive implementations:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
Upvotes: 1