Hi,
I am not sure about 2 SWF's communicating across domains - that
sounds like it would use JavaScript, which probably won't work because
it is essentially cross site scripting (XSS), which is usually
"forbidden" for JS.
If you are loading one SWF inside another, you need to have a
crossdomain.xml file in the root directory of mydomain-other.com (if
that is the SWF you are loading). If it loads the SWF, then that bit
works. The next bit is whether the SWF you loaded is allowed to talk to
the parent one, that maybe a bigger can of worms and I am still trying
to get my head around it all. I think you have to put the but there are
some articles here...
http://www.adobe.com/devnet/flashplayer/security.html
FP7 has the System.security stuff in, which will apply to 8 too.
I think you need to put your System.security.allowDomain in the
child swf and allow the parent to call scripts on it...
<http://www.adobe.com/devnet/flashplayer/security.html>
HTH
Glen
Corban Baxter wrote:
Hey guys! i have a really weird question I have never ran into before.
i am trying to host some SWF's on two serperate domains and get them
to talk to each other. But i keep getting the error *** Security
Sandbox Violation *** SecurityDomain
'http://www.mydomain-other.com/mySWF.swf' tried to access incompatible
context 'http://www.mydomain.com/main.swf'. What can I do to get these
two to allow them to talk to each other? Is it a crossdomain issue or
soemthing else?
I tried doing a few things like:
System.security.allowDomain("http://www.mydomain-other.com");
System.security.sandboxType = "remote";
And also setup some crossdomain files on both but still nothing. Any
ideas for me? Thanks! Oh and its a Flash 8 AS2 project. Thanks!
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders