Hi,

I'm using the Flex SDK 4.0.0.9916, and cannot get the ApplicationUpdaterUI to 
initialize.

Following creation complete, I initialize the ApplicationUpdaterUI object, and 
call the ApplicationUpdaterUI.initialize() -- code snippet below.  

The object appears to initialized properly according to the data popped out in 
the application log:

(air.update::ApplicationUpdaterUI)#0
  configurationFile = (flash.filesystem::File)#1
  currentVersion = "0.2"
  delay = 1
  isCheckForUpdateVisible = true
  isDownloadProgressVisible = true
  isDownloadUpdateVisible = true
  isFileUpdateVisible = true
  isFirstRun = false
  isInstallUpdateVisible = true
  isNewerVersionFunction = (function)
  isUnexpectedErrorVisible = true
  isUpdateInProgress = true
  localeChain = (Array)#40
  previousApplicationStorageDirectory = (null)
  previousVersion = ""
  updateDescriptor = (null)
  updateURL = "http://www.ddxint.com/service/default/desktop_update/updates.xml";
  wasPendingUpdate = false


However, none of my events are being triggered.  My Apache access log doesn't 
show any hits on the defined URL.  Also, calls to checkNow() do absolutely 
nothing.  The only things that I am seeing is that the user application  local 
store folder is being populated with an "#ApplicationUpdater" folder with a 
state.xml file:

<state xmlns="http://ns.adobe.com/air/framework/update/state/1.0";>
  <lastCheck>Thu Sep 3 16:27:37 GMT-0300 2009</lastCheck>
</state>


This seems to show that the updater is doing something...  but what?

Any ideas?

Thanks,

Mike



protected function _initializeUpdateFramework():void
{
    if (!Capabilities.isDebugger) {
        this.updater = new ApplicationUpdaterUI();
        this.updater.configurationFile = new File("app:/assets/update.xml");
        this.updater.addEventListener(DownloadErrorEvent.DOWNLOAD_ERROR, 
_download);
        this.updater.addEventListener(ErrorEvent.ERROR, _error);
        this.updater.addEventListener(ProgressEvent.PROGRESS, _progress);
        
this.updater.addEventListener(StatusFileUpdateErrorEvent.FILE_UPDATE_ERROR, 
_statusFile);
        this.updater.addEventListener(StatusFileUpdateEvent.FILE_UPDATE_STATUS, 
_statusFileUpdate);
        this.updater.addEventListener(StatusUpdateErrorEvent.UPDATE_ERROR, 
_updateError);
        this.updater.addEventListener(StatusUpdateEvent.UPDATE_STATUS, 
_updateStatus);
        this.updater.addEventListener(UpdateEvent.BEFORE_INSTALL, 
_beforeInstall);
        this.updater.addEventListener(UpdateEvent.CHECK_FOR_UPDATE, 
_checkForUpdate);
        this.updater.addEventListener(UpdateEvent.DOWNLOAD_COMPLETE, 
_donwloadcomplete);
        this.updater.addEventListener(UpdateEvent.DOWNLOAD_START, 
_donwloadStart);
        this.updater.addEventListener(UpdateEvent.INITIALIZED, 
_updateInitialized);

        try {
            this.updater.initialize();
        } catch (e:Error) {
            this._logger.debug(ObjectUtil.toString(e));
        }

        this._logger.debug(ObjectUtil.toString(this.updater));
    }
}

protected function _updateInitialized(event:UpdateEvent):void
{
    this._logger.debug("UpdateEvent.INITIALIZED");
}

protected function _donwloadStart(event:UpdateEvent):void
{
    this._logger.debug("UpdateEvent.DOWNLOAD_START");
}

protected function _donwloadcomplete(event:UpdateEvent):void
{
    this._logger.debug("UpdateEvent.DOWNLOAD_COMPLETE");
}

protected function _checkForUpdate(event:UpdateEvent):void
{
    this._logger.debug("UpdateEvent.CHECK_FOR_UPDATE");
}

protected function _beforeInstall(event:UpdateEvent):void
{
    this._logger.debug("UpdateEvent.BEFORE_INSTALL");
}

protected function _updateStatus(event:StatusUpdateEvent):void
{
    this._logger.debug("StatusUpdateEvent");
}

protected function _updateError(event:StatusUpdateErrorEvent):void
{
    this._logger.debug("StatusUpdateErrorEvent");
}

protected function _statusFileUpdate(event:StatusFileUpdateEvent):void
{
    this._logger.debug("StatusFileUpdateEvent");
}

protected function _statusFile(event:StatusFileUpdateErrorEvent):void
{
    this._logger.debug("StatusFileUpdateErrorEvent");
}

protected function _progress(event:ProgressEvent):void
{
    this._logger.debug("ProgressEvent");
}

protected function _error(event:ErrorEvent):void
{
    this._logger.debug("ErrorEvent");
}

protected function _download(event:DownloadErrorEvent):void
{
    this._logger.debug("DownloadErrorEvent");
}

Reply via email to