2 Replies Latest reply on Sep 16, 2009 4:07 PM by yboyar

    Flash Builder and Adobe AIR update framework

    Hironmay Level 4

      Hi,

       

      I posted this in AIR forum , but thought it happens with new flash builder and flex 4 beta , i should do here also

       

       

      When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543

       

       

      The error is

       

      TypeError: Error #1007: Instantiation attempted on a non-constructor.
          at mx.controls::ProgressBar/createChildren()
          at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
          at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
          at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
          at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
          at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
          at mx.states::AddChild/createInstance()
          at mx.states::AddChild/set targetFactory()
          at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
          at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
          at ApplicationUpdaterDialogs()
          at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
          at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
          at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]

       

       

       

      The code is the exact same given in the updater example i mentioned in the link above. Only difference is i am using spark framework. The appUpater.initialize() never seem to work and keeps throwing an exception. Any alternatives so suggestions ?

       

      This works fine in my Flex Builder 3.

       

      Thanks

      Hironmay Basu