Skip to main content
Participating Frequently
September 19, 2009
Question

SWF load a XML on an other server = BUG

  • September 19, 2009
  • 1 reply
  • 423 views

Hi AS3 fellaz,

All sources availbale here : http://www.tapiocadesign.com/prods/xstrata/_CROSS_DOMAIN_EXEMPLE.zip

MY GOAL :

from a flash(swf) on server A, I want to download an XML file on server B.

MY PROBLEM : it doesn t work

1 - I use the Class URLLoader

2 - I set both these domains ok with Security.allowDomain() method

3 - I upload a "crossdomain.xml" (in folder and root server) file who allow crossdomain communication (adviced by Adobe)

Here is the comparaison :

LOCAL WORKS (swf and xml are on the same server) :

http://www.tapiocadesign.com/prods/xstrata/_CROSS_DOMAIN_EXEMPLE/URLLoader_localXML.html

var request:URLRequest = new URLRequest("XML_exemple.xml");

DISTANT DOESN'T WORK (swf on server A, xml on server B) :

http://www.tapiocadesign.com/prods/xstrata/_CROSS_DOMAIN_EXEMPLE/URLLoader_distantXML.html

var request:URLRequest = new URLRequest("http://www.nullepart.com/prods/xstrata/_CROSS_DOMAIN_EXEMPLE/XML_exemple.xml");

This is a very important project, I would worship your brain if you can solve this. And maybe a litle gift... so desperate...

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 19, 2009

i used var request:URLRequest = new URLRequest("http://www.xstrata.com/operations/xstrata_map.xml"); and had no problem.