Doug, So in the widget code to use the Flex Viewers built in drawTool you would use the setMapAction function.So something like this:
import com.esri.ags.tools.DrawTool;
import com.esri.ags.events.DrawEvent;
private function activateDrawTool(event:MouseEvent):void
{
addSharedData("Deactivate_DrawTool", null); // to be able to deactivate drawTool on other widgets
setMapAction (DrawTool.MAPPOINT,"Click map to get address", someSymbolorNull, drawEnd);
}
private function drawEnd(event:DrawEvent):void
{
var geom:Geometry = event.graphic.geometry;
// do your magic here
}
<s:HGroup id="drawImageGroup"
width="100%"
gap="2"
horizontalAlign="center">
<mx:Image name="{DrawTool.MAPPOINT}"
width="40" height="40"
buttonMode="true"
click="activateDrawTool(event)"
source="assets/images/i_draw_point.png"
toolTip="Reverse Geocode location on the Map"
useHandCursor="true"/>
</s:HGroup>