Matt Kenefick
Contact Me Experiments Blog Portfolio

Posts Tagged ‘automatically’

AIR: Creating an AS3 updater

Tuesday, November 18th, 2008

Here is a simple code that will check a server to see if there are updates to your app. It reads an XML file that contains details like: Version, Name, Release, Changes, Download Link. You can add/remove as you wish. It compares to a set version variable in the kapp class. If it does not match, it shoots out an event that you can monitor.

This is a very simple example. Later I will post an example of:

  • Check server for updates
  • If version is greater, ask to update
  • If yes, download update automatically.
  • Automatically show new app without restarting.

This will let the user very easily update your AIR apps without having to open any AIR files or doing anything manually. You simply say “Update”, and from there.. it downloads, installs, and reopens automatically.

Keep an eye out.

Download Source