I am creating a flash project where I load data from server. When I run that from flash software using Ctrl+Enter or create exe then that works but when I run swf normally or using a browser then it is not working.
I tried to add this code but not working
Security.loadPolicyFile("policy.xml");
or
Security.allowDomain("192.168.10.8");
Security.allowDomain("www.example.com");
My policy.xml is
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-access-from domain="www.example.com" />
<allow-access-from domain="192.168.10.8" />
</cross-domain-policy>
Please advice me.