Hi,
I have built the version 2.2 viewer from the source code and am using it with a version 10 (SP1) ArcGIS server and a dynamic map service published from ArcMAP version 10 (Build 2800). When I use the legend widget that comes with the version 2.2 widget I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()
at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()
at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()
at com.esri.ags.skins::LegendSkin/extentChangeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.esri.ags::Map/tweenEndHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at MoveResize/enterFrameHandler()
The error occurs as soon as the widget loads (if I preload it), and after any change to the map that affects the layer visibility subsequently (Zoom, toggle layer from TOC, etc).
Any ideas?
Regards,
++ Ray