2 Replies Latest reply on Jan 28, 2010 8:49 AM by tehxike1

    AIR Updater bombs on Initialize()

    tehxike1

      In Flex 3 I used this code to setup my AIR updater:

       

      _updater = new ApplicationUpdaterUI();
      _updater.updateURL = "...";
      _updater.isCheckForUpdateVisible = false;
      _updater.addEventListener(UpdateEvent.INITIALIZED, checkForUpdate);
      _updater.addEventListener(ErrorEvent.ERROR, onError);
      _updater.initialize();

       

      With Flex 4, calling the final initialize() function results in this error:

       

      TypeError: Error #1007: Instantiation attempted on a non-constructor.
          at mx.preloaders::Preloader/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:253]
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\trunk\frameworks\projects\ framework\src\mx\managers\SystemManager.as:1920]
          at mx.managers::SystemManager/initHandler()[E:\dev\trunk\frameworks\projects\framework\src\m x\managers\SystemManager.as:2414]

       

      Is there something new I need to do in Flex 4 to handle AIR updates?  I read the livedocs for the ApplicationUpdaterUI and it appears to be the same as Flex 3.

       

      Thanks!