In Flex 3 I used this code to setup my AIR updater:
_updater = new ApplicationUpdaterUI();
_updater.updateURL = "...";
_updater.isCheckForUpdateVisible = false;
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.
I encountered this too, but the problem seems to have been fixed in recent nightly builds. I don't when it was fixed exactly, but SDK 13729 works fine for me.
If you don't want to use a nightly build, there is a third-party solution available here:
Thanks- that got me working. I had stayed on 12891 since one of the more recent ones broke Flex 3 SWF support, but it looks like the tip is good right now.