I think you need to specify allowDomain("www.laurentcuchet.fr") in sys1.swf in B

----- Original Message ----- From: "Laurent CUCHET" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, July 25, 2006 4:29 PM
Subject: [Flashcoders] >> send and read datas


Hi

I try to read data as this and I meet security problem :

Theres two domains

A : http://www.laurentcuchet.fr/test/
B : http://www.aniblog.com

1. index.swf from A load sys1.swf from A : sys1 can read index.swf datas
2. index.swf from A load sys1.swf from B : sys1 can¹t read index.swf datas

Actionscript from index :
System.security.allowDomain("www.aniblog.fr","aniblog.fr","http://www.aniblo
g.fr");
var link = "http://www.aniblog.com/";;
this.var1.text = "test";
stop();

Wwhen button is clicked you load local from A or external from B

There¹s ³crossdomain.xml² on each basedomain,

<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
<cross-domain-policy>   <allow-access-from domain="www.aniblog.com" />
  <allow-access-from domain="www.laurentcuchet.fr" />   <allow-access-from
domain="aniblog.com" />   <allow-access-from domain="laurentcuchet.fr" />
  <allow-access-from domain="*" /> </cross-domain-policy>

HTML : security:  allowScriptAccess="always"

Thank for your help

Laurent

Msn : [EMAIL PROTECTED]


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to