I've created my own drawing tool widget, which worked fine in Flex API 3.0/Flex Viewer 3.0, but 3.1+, it doesn't work correctly and I get this error when I place a picture marker symbol onto the map:
It does still place the marker symbol on the map, but I do use multipoint and I can't finish the drawing by double clicking because of this error.
Code:
TypeError: Error #1006: value is not a function.
at com.esri.viewer.managers::MapManager/drawEndHandler()[C:\Data\Development\Viewer\src\com\esri\viewer\managers\MapManager.mxml:1553]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.esri.ags.tools::DrawTool/map_clickFirstHandler()[C:\checkout\flex_api3\api\src\com\esri\ags\tools\DrawTool.as:852]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.esri.ags.layers.supportClasses::LayerContainer/dispatchMapMouseEvent()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\supportClasses\LayerContainer.as:268]
at com.esri.ags.layers.supportClasses::LayerContainer/mouseUpHandler()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\supportClasses\LayerContainer.as:337]