PDA

View Full Version : Detecting External File Change?


jlfx
01-23-2004, 03:45 PM
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?

CyanBlue
01-23-2004, 06:24 PM
Howdy... ;)

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...

mrand01
01-24-2004, 02: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.