I am using auto update in my flex application using the updater framework. I got this article and followed the same steps.
http://blog.multimediacollege.be/2008/12/using-the-air-15-updater-framework-in-flex/#
But i'm getting an error and can't understand the reason:
1046: Type was not found or was not a compile-time constant: UpdateEvent.
import flash.events.ErrorEvent;
import air.update.ApplicationUpdaterUI;
import air.update.events.UpdateEvent;
import mx.controls.Alert;
private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI();
private function checkForUpdates():void {
appUpdater.configurationFile = new File("app:/updateConfig.xml");
appUpdater.isCheckForUpdateVisible = false;
appUpdater.addEventListener(UpdateEvent.INITIALIZED,updaterInitialised);
appUpdater.initialize();
}
private function updaterInitialised(event:UpdateEvent):void {
appUpdater.checkNow();
}