I have a swf banner slideshow which is continually looping through statistics and images for a business presentation. Once it is opened in the HTMl window it remains present for the whole day. I have an XML file loading the values in the dynamic text boxes. My problem is I’m not sure how I can force a reload if the XML changes. I.E. if a sales stat changes every 20mins and then the share price changes every 10 mins how would I ensure these updated statistics feed into the SWF without closing it down and launching it again or doing a refresh?
Any pointers would be greatly appreciated - i’ve search high and low for a solution.
You could poll (repeatedly check) the xml file periodically and check its values against the existing loaded ones. If you have problems with the xml caching, append a random number to the url every time you load it e.g myxmlfile.xml?random=42321312. You could also use an xml socket (or other socket connection) if you have a socket server, and then you can respond immediately to any change without polling.