This content has been marked as final. Show 3 replies
Bundling the data with the application makes sense when the data are static. Default data, for example.
When it's dynamic, it's better to have the app download the data at run time. Then it's always fresh.
To avoid having to download the same data again and again, you can put a version.xml file in the web directory alongside the other data files containing just version numbers for the other files. Your app downloads that on startup, compares the version numbers within with what it knows about the versions it currently has (which it stores locally on disk), and updates only the pieces that have changed since the last run.
Fetching this tiny little XML file will be quick, and optional. If the user is offline, they continue with the previous data files. When they get online, their local copies get refreshed as needed.
Thanks for the reply. That sounds reasonable, but I haven't a clue on how to implement it. Do you know of any examples or tutorials?
Read in the manual about URLRequest and URLLoader. The example code covers it.
As for parsing the version.xml file, look in the manual under E4X.