View Full Version : Detecting External File Change?
I am using an XML doc to feed data to a flash app. I want to be able to have flash detect when changes are made to the doc and then re-read the file. How could I do this?
01-23-2004, 07:24 PM
Well... You cannot really use ActionScript to do that, I think...
ActionScript cannot check if the file size has been changed or the date of the file has been changed...
You'd need to use server side scirpt such as PHP to check those attributes...
So, basically you will have Flash to call the PHP script, for example, every 5 minutes... and the PHP script will be checking if there has been changes on the XML file and return true or false back to Flash...
01-24-2004, 03:35 PM
I don't know if this is a project you're working on with a budget. But if you have the dough, get a copy of FlashCom Server. You can store SharedObjects on the server side, they automatically update all the clients whenever they change. Its cool.
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.