Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-23-2004, 03:45 PM   #1
jlfx
Member
 
Join Date: Nov 2003
Posts: 50
Default 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?
jlfx is offline   Reply With Quote
Old 01-23-2004, 06:24 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-24-2004, 02:35 PM   #3
mrand01
Senior Member
 
Join Date: Jun 2003
Location: Morris Plains, NJ
Posts: 621
Send a message via AIM to mrand01
Default

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.
mrand01 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:50 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.