0 Replies Latest reply on Jun 19, 2009 5:42 AM by Hironmay

    AIR Update framework with Flash Builder

    Hironmay Level 4

      Hi,

       

      I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :

       

       

      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 give in the example i mentioned above.

       

      This works fine in my Flex Builder 3.

       

      Thanks

      Hironmay Basu