This content has been marked as final. Show 5 replies
Look at the Timer class. Set it up to tick after every 30 minutes. Use the timer event to send a HTTPServer.send() call to the server to ask the question, "has a newer file arrived"? if the answer is yes, reload the grid.
Do have an example that I can follow, I'm new to flex and actionscript.
Google is you friend! :)
of course, you'll be writing the logic of question "do you have a newer file" on the server and Flex has nothing to do with it.
This is my code, where am I going wrong. Thanks??
1) Timer's interval is in milliseconds. Are you sure you want to send a request to server after every 30ms?
2) How are handling the data returned by HTTPServices? You need to use result and/or fault events
3) The HTTPSerivces are simply getting XML data from the files; that would not answer the question if new file has arrived. How do you intend to acheive that goal?