views:

38

answers:

0

OK my flex app checks for a file on the internet (update.xml) which contains the most recent version number and a location on where to download the update, if the most recent version number is not the version of the current app, then the app auto-updates using the file at the location listed in the (update.xml) file.

If my app fails to load the update.xml file then it skips trying to update,

OK this works great.

However if my app does try to update, and there is some sort of error while updating, the default behavior for AIR is to relaunch the un-updated version of the application. Which in this case causes a never ending loop because then the un-updated app relaunches, it tries to update again, fails, and relaunches again, etc.

So I guess what I need is some way for my app to tell that it already tried to update and failed, and not to try to update again for a period of time (a day maybe)

Any ideas on how to do that?

Thanks!!

related questions