Solved! Go to Solution.
private function map_mouseUpHandler(event:MouseEvent):void
{
//My Add
if(event.target is FTETextField){
if(event.target.parent !== editGraphic){
map.removeEventListener(MouseEvent.MOUSE_UP, map_mouseUpHandler);
map.removeEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler);
stopEditing();
}else{
return;
}
}
//End My Add
if (event.target !== editGraphic)
{
map.removeEventListener(MouseEvent.MOUSE_UP, map_mouseUpHandler);
map.removeEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler);
stopEditing();
}
}
All,
Next version of the eDraw widget is available:
Version 3.3.2 - 5/17/2013
* Fixed an issue where it was extremely difficult to select and move text placed by the widget.
switch (drawType) { case DrawTool.MAPPOINT: { drawingPolygon = drawingLine = false; addingText = selectedDrawingIcon.id == "text"; drawingPoint = !addingText; showMeasurements = drawingPoint = !addingText; PointXY = true; drawMode = addingText ? TEXT_MODE : null; drawStatus = (drawMode == TEXT_MODE) ? addTextLabel : drawPointLabel; setMapAction(drawType, drawStatus, null, map_drawEndHandler); break; } case DrawTool.POLYLINE: { drawingPoint = addingText = drawingPolygon = PointXY = false; drawingLine = showMeasurements = true; drawStatus = drawLineLabel; setMapAction(drawType, drawStatus, lineSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.FREEHAND_POLYLINE: { drawingPoint = addingText = drawingPolygon = PointXY = false; drawingLine = showMeasurements = true; drawStatus = drawFreehandLineLabel; setMapAction(drawType, drawStatus, lineSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.EXTENT: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawRectangleLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.CIRCLE: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawCircleLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.ELLIPSE: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawEllipseLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.POLYGON: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawPolygonLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.FREEHAND_POLYGON: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawFreehandPolygonLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } }