1 person found this helpful
Use Charles, or Fiddler to see what's going on when the request is made. If relative works then you're testing that on the server...are you testing the absolute path on the server too? Crossdomain issue?
Thanks. Fiddler is great, I didn't know about it. With the relative path I can see the proper data in textview being passed back to Flash from PHP. But with the full path, Fiddler labels the session URL as /crossdomain.xml and in the response textview I can see file not found type of info:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<p>The document has moved <a href="http://parallaxdesigngroup.com/pageNotFound.html">here</a>.</p>
Weird that a full path would fail.Here is my full path copied and pasted out of Flash, and if you put it in the browser you can see it doesn't give you file not found. It doesn't do anything in the browser because its purpose in life is just to pass stuff back to Flash.
So I now know what is happening, but am not sure what to do to make the full path work. Any further thoughts greatly appreciated!
I just read up on crossdomain files and added this crossdomain.xml to my root folder.
<?xml version="1.0" ?>
<allow-access-from domain="*" />
Now everything seems to work fine.
THanks so much for pointing me to Fiddler, will save many hours in the future, I'm sure.
This looks good.
Can you explain a little to me about what it does?
Thanks very much for your reply.
Great - glad you got it working. Please mark the thread as answered if you can. Also - lingogirl - interesting name, are you a Director user? I was a Director guy for a long time.
Yes, I was a Director user for a long time, hence the name. It was painful to switch to Flash, but I got to like it eventually. Thanks a million for you very kind help. How do I mark my thread as "answered?"
This means you get your resources just to get the same domain or only resources in other domains. I imagine that there as a security measure to build applications that are not stealing resources from other domains.
And should be based on the logic that if you work only locally, you would not have to use absolute paths but if you do a RIA, you only get information from internet, yes you would have to use absolute paths
Thanks! I will do that. I very much appreciate your explanation.