Hi,
I 'm using a xmlSocket in my application which will interact with Java
Listener. I 'm facing a strange issue.
case 1:
I have opening a swf file from Flex Builder in my local system, which
is able to establish xmlSocket connection with Listener on unix
machine and both the files were able to transfer data.
case 2:
Final requirement of the project is access swf from unix machine(Web
Server). Both swf and Java Listener were present in same Unix
Machine.So when I 'm trying to access swf file from unix machine, it
is not able to establish connection with java Listener and giving the
following error:
Security ErrorError #2048: Security sandbox violation
After some observations, I came to know that a policy file will be
required and I specified it as follows:
Security.loadPolicyFile("http://myunix:37850/UCweb/crossdomain.xml");
Contents of Policy file are as follows:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/
dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" secure="false"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<site-control permitted-cross-domain-policies="by-content-type"/>
</cross-domain-policy>
I 'm not able to understand whatelse has to be done in this case.
Kindly help me solving fixing this issue.
Cheers,
Sandeep.
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.