Following is output on my console:
[SWF] autoupdate.swf - 3,204,024 bytes after decompression private function onError(event:ErrorEvent):void [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception TypeError: Error #1009: Cannot access a property or method of a null object reference." errorID=1009]
my code is in Application Create Event (s:ViewNavigatorApplication)
protected function viewnavigatorapplication1_creationCompleteHandler(event:FlexEvent):void
{
setApplicationVersion();
appUpdater.delay = 1;
appUpdater.isDownloadProgressVisible = true;
appUpdater.isDownloadUpdateVisible = true
appUpdater.isInstallUpdateVisible = true;
appUpdater.isFileUpdateVisible = true;
appUpdater.updateURL = "http://localhost/updater/update.xml";
appUpdater.isCheckForUpdateVisible = false; // sajjad false initially
appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate);
appUpdater.addEventListener(ErrorEvent.ERROR, onError);
appUpdater.initialize();
}
private function onError(event:ErrorEvent):void
{
//Alert.show(event.toString());
trace("private function onError(event:ErrorEvent):void");
trace(event);
}
private function onUpdate(event:UpdateEvent):void
{
trace("private function onUpdate(event:UpdateEvent):void");
appUpdater.checkNow(); // Go check for an update now }
}
I have added the http://www.adobe.com/devnet/air/articles/air_update_framework.html
Can it be the case that i am trying to export the flex mobile application as desktop application and i need to create a desktop only project ?