header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Rohit
Points:160
Posts:0

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";



1
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

2
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

3
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions