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:TypeError: Error #1006: value is not a function.
at com.esri.viewer.managers::MapManager/drawEndHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.esri.ags.tools::DrawTool/map_clickFirstHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.esri.ags.layers.supportClasses::LayerContainer/dispatchMapMouseEvent()
at com.esri.ags.layers.supportClasses::LayerContainer/mouseUpHandler()
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.