
What is Flash Security Sandbox Error?
You will see Security Error when Flash Player tries to load external data or files such as another SWF, XML or Images that are not in Flash Player security sandbox. If you are trying to load data from any other domain, you might see similar errors or issues as well.
If you’re able to trace you can see some similar errors as :
SecurityError: Error #2028: Local-with-filesystem SWF file
How to resolve this issue?
To resolve this issue, you need add cross-domain policy files on the server that you’re trying to load data from. A cross-domain policy file is an XML file that provides a way for the server to indicate that its data and documents are available to SWF files served from defined domains. Cross-domain policy file can also have asterisk (*) to indicate that its data is available to all.
Related Articles on Dglobaltech.com
- Flash AS3 Tutorial : FullScreen functionality with Sample code
- Flash AS3 Tutorial – Parse XML using AS3
- Flash AS3 Tutorial : FullScreen functionality with Sample code
Sample Cross-domain XML file
<?xml version=”1.0″?>
<cross-domain-policy>
<allow-access-from domain=”*.dglobaltech.com” />
<allow-access-from domain=”www.friendOfdglobaltech.com” />
<allow-access-from domain=”192.223.22.113″ />
</cross-domain-policy>
If everything above is correct, your error should be disappeared and you will see data successfully loaded within your swf file.
READ : Put all your ducks in a row before Interview : 12 common face to face interview questions