Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Flex Widget Upgrade from 2.4 to 3.1 Problem

$
0
0
I'm just trying to upgrade a flex widget from 2.4 to 3.1 and having a few problems. It works fine in ArcGIS Viewer for Flex 2.4, but when I upgrade it to 3.1 it doesn't work. There were a few easy references and things I had to change in the code to get it to compile, so it does run, but when I open the tool in Flex Viewer I get this error:

TypeError: Error #1007: Instantiation attempted on a non-constructor.


at com.esri.ags.symbols::SimpleFillSymbol/updateStyleImpl()[C:\checkout\flex_api3\api\src\com\esri\ags\symbols\SimpleFillSymbol.as:437]


at com.esri.ags.symbols::SimpleFillSymbol/set style()[C:\checkout\flex_api3\api\src\com\esri\ags\symbols\SimpleFillSymbol.as:245]


at mx.binding::Binding/defaultDestFunc()


at Function/http://adobe.com/AS3/2006/builtin::call()


at mx.binding::Binding/innerExecute()


at Function/http://adobe.com/AS3/2006/builtin::apply()


at mx.binding::Binding/wrapFunctionCall()


at mx.binding::Binding/execute()


at mx.binding::BindingManager$/executeBindings()


at widgets.SelectBufferFind::SelectBufferFindWidget/_SelectBufferFindWidget_SimpleFillSymbol1_i()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\widgets\SelectBufferFind\SelectBufferFindWidget.mxml:48]


at widgets.SelectBufferFind::SelectBufferFindWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\widgets\SelectBufferFind\SelectBufferFindWidget.mxml:48]


at _SelectBufferFindWidget_mx_core_FlexModuleFactory/create()[_SelectBufferFindWidget_mx_core_FlexModuleFactory.as:51]


at com.esri.viewer.managers::WidgetManager/createWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1052]


at com.esri.viewer.managers::WidgetManager/runWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1133]


at com.esri.viewer.managers::WidgetManager/widgetReadyHandler()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1201]


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at ModuleInfoProxy/moduleEventHandler()


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at ModuleInfo/readyHandler()


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at mx.core::FlexModuleFactory/update()


at mx.core::FlexModuleFactory/docFrameHandler()


at mx.core::FlexModuleFactory/docFrameListener()


It appears to be something to do with the SimpleFillSymbol as if I remove the references to it out of the code it works, however it removes some of the necessary functions - it's a drawing tool. So I'm not quite sure what has changed between the Flex API 2.4 to 3.1 that may be causing an issue with this, any ideas?





Viewing all articles
Browse latest Browse all 2097

Trending Articles