I have noticed that after updating the XML, the new data is displayed only if I clear my browser's cache and reload the page. This is obviously not a solution. Does anyone have any suggestions? Should I be using a database (which I was trying to avoid) instead of trying to write a local file? I can provide my source code if that helps...
just attach a timestamp after every call to the xml:
var req:URLRequest = new URLRequest( "http://localhost/gallery.xml?refresh=" + new Date().getTime() );
This will make the browser to think that the link may be potentially be a different content due to the URL variable changing, and reload it every time.
Thanks dzeikei! Though I am using an httpService object, the technique of adding the timestamp in the URL works. Because of your response, I read in the manual, but could you recommend the difference between using an httpService/URLRequest/URLLoader? They all seem somewhat similar to a noob like me...
And does anyone have an idea for my issue #2? Though calling the PHP script and writing the XML file works, the text "Transferring data from localhost..." appears at the bottom of my browser indefinitely when calling the httpService.send().
HttpService is more convenient if you use it repeatedly. I think it
uses URLRequest/loader under the hood anyway.
As for issue #2, browsers are dumb, they always do that