Security Policy not working, as3

Posted by VideoDnd on Stack Overflow See other posts from Stack Overflow or by VideoDnd
Published on 2010-05-19T16:59:06Z Indexed on 2010/05/19 17:10 UTC
Read the original article Hit count: 212

Filed under:
|

How to I get my security policy working? My parent swf parses an XML doc and loads 2 children. It throws a 2148 security error, and only works in the Flash IDE.

PARENT SWF

flash.system.Security.loadPolicyFile("crossdomain.xml");

I've referenced my security file from my swf. I Also published my parent swf as 'network only' and put all the crossdomain.xml and everything else in the same folder. I need to click on the animations and have them place from a local computer at a kiosk. Any suggestions?

POLICY FILE

<?xml version=\"1.0\"?>
<!DOCTYPE cross-domain-policy SYSTEM \"/xml/dtds/cross-domain-policy.dtd\">
<cross-domain-policy>
<site-control permitted-cross-domain-policies=\"master-only\"/>
<allow-access-from domain=\"*\" to-ports=\"*\" secure=\"false\" />
</cross-domain-policy>" 

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3