12/7/2011 3:19:14 AM
Title:
I wanna keep html and swf file on a.com and xml, imageg on b.com
I wanna keep html and swf file on a.com and xml, imageg on b.com
how can I access XML and images from swf file?
I get error regarding sandbox violation.
I have used loadpolicy file in AS3
this swf file is on abcd.com
and wanna load xml from xyz.com
Security.loadPolicyFile("http://www.abcd.com/downloads/crossdomain_example/crossdomain.xml");
xmlPath = "http://www.xyz.com/flash_samples/Flash%20Banners/Vertical%20Banner_Three%20Image/verticle_banner.xml";
Tyler
Points: 430
Posts:0
12/9/2011 12:27:51 PM
policy file should be on root of the website from where content needs to be loaded. In your case it should be placed at domain b.com where images and xml are located. Flash will automatically load it from the root of the domain.
http://www.b.com/crossdomain.xml
Rohit
Points: 160
Posts:0
12/10/2011 4:22:06 AM
Thanks Tyler
can you tell me the format of crossdomain.xml Which permissions do I need to specify???
Thanks
Davis
Points: 780
Posts:0
12/11/2011 11:15:26 AM
you can check crossdomain.xml file format on this link, All permissions are already granted
http://askmeflash.com/qdetail/1561/security-sandbox-error