Re: [flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-30 Thread Mike Britton

Try:


http://malaszuk.net/photos.xml>"/>
http://80.192.78.134/photos/photos.xml>
"/>




Mike Britton


RE: [flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-30 Thread Peter Farland
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 
x.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.



 


Re: [flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-30 Thread Mike Britton

Are you declaring the namespace?  If not and you're using e4x, you'll need
to do this to access the nodes.  Are you simply unable to get the file?  Use
the Flex debugger so you know your errors in the stack trace.

Otherwise this seems like a security issue, one that may be resolved with
crossdomain.xml.  Pull up your crossdomain xml file and make sure it's not
malformed.

Mike


On 5/29/07, Maciek Malaszuk <[EMAIL PROTECTED]> wrote:


  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
x.net).

When i point both httpservice or urlloader to 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 (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.

 





--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com


[flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-29 Thread Maciek Malaszuk
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 
x.net).

When i point both httpservice or urlloader to 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 (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.