If you're accessing a domain that is not the same as that which was used
to load your SWF, you will need to setup a crossdomain.xml policy file
on the remote domain. This crossdomain.xml file needs to specify that
the domain hosting your swfs can access it (the Flash Player will check
this policy file at runtime and decide whether it should allow the
connection). Many of these requirements were introduced in Flash Player
7.
 
http://www.adobe.com/devnet/flash/articles/fplayer_security.html
 
There are some further security policies in later versions of the
player, but the majority of them are covered in this article.
 
Note that when matching domain names, reverse lookup is not performed so
the name must match exactly (i.e. "127.0.0.1" is not the same as
"localhost" according to the policy).
 
Pete

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maciek Malaszuk
Sent: Tuesday, May 29, 2007 5:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with loading xml file using HTTPService or
URLLoader



Hi,

I'm struggling with strange problem.
I'm trying to load XML file in my code which containst data about 
images but thats nor really relevant.

Lets assume i have remote server where i run my code (domain 
xxxxx.net).

When i point both httpservice or urlloader to http://mydomain.net/
<http://mydomain.net/> 
photos.xml it does work on my local machine but DOES NOT when i copy 
the file to that mydomain server.

This is only one configuration it works on. 

Different scenario i tried and does not work is:
loader pointing to http://mylocalmachineIP/photos.xml
<http://mylocalmachineIP/photos.xml>  (which is 
accessible from the internet) and application neither on local 
machine nor server works.

Did anyone encountered similar problem before? I would expect 
httpservice to be able to access file regardless of its location if 
the url is valid...

Thanks for help as i'm really stuck on this one.



 

Reply via email to