1 Reply Latest reply on Jun 25, 2007 10:34 AM by rvollmar

    MoxieM2: compiling ok, but SWF has Key outOf Range error 

    vdwpeter

      I did a quick test on an existing project, and like to know what's
      going on:

      When using the Flex 2.0.1 SDK to compile an application we are
      working on, compiling & final swf runs fine.

      When using the Flex Moxie M2 compiler, compiling also runs without
      errors, but when launching the swf, we get this lengthy error in
      return:


      Error: Key outOfRange was not found in resource bundle controls
      at mx.resources::ResourceBundle/private::_getObject()
      at mx.resources::ResourceBundle/getString()
      at [newclass]
      at global$init()
      at MethodInfo-5733()
      at Function/ http://adobe.com/AS3/2006/builtin::call()
      at mx.core::ComponentDescriptor/get properties()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at
      mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::child
      Added()
      at
      mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAd
      ded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at
      mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::child
      Added()
      at
      mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAd
      ded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.containers::ViewStack/private::instantiateSelectedChild
      ()
      at
      mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
      at mx.core::UIComponent/validateProperties()
      at mx.managers::LayoutManager/private::validateProperties()
      at mx.managers::LayoutManager/private::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/private::callLaterDispatcher2()
      at mx.core::UIComponent/private::callLaterDispatcher()
      at [enterFrameEvent]


        • 1. Re: MoxieM2: compiling ok, but SWF has Key outOf Range error 
          rvollmar
          Hi,
          "outOfRange" is a string in the controls.properties file of 2.0.1 localization resources. It is not present in 3.0, so it looks like either:
          1) There is a mismatch of the compiler and the string resources. For example, the 2.0.1 compiler may be trying to use the 3.0 strings, and since the string is missing, there's an error. Or,

          2) Maybe we removed a string which is needed in 3.0, and didn't notice.

          Could you send a small sample app. which reproduces the issue?
          Thanks!