protected function layer_clickHandler(event:MouseEvent):void { customDraw.deactivate(); //if (!drawingComplete) //just selection //{ if (event.target is Graphic || event.target.parent is Graphic) { if (selectedGraphic != null) { (selectedGraphic.parent as FeatureLayer).applyEdits(null, [ selectedGraphic ], null); } if (event.target is Graphic) { selectedGraphic = Graphic(event.target); } else if (event.target.parent is Graphic) { selectedGraphic = Graphic(event.target.parent); } editTool.activate(EditTool.MOVE, [ selectedGraphic ]); map.addEventListener(MapMouseEvent.MAP_CLICK, map_mapClickHandler); }
<esri:EditTool id="editTool" graphicsMoveStop="editTool_graphicsMoveHandler(event)" map="{map}"/>
Solved! Go to Solution.
Sacha,
Could you provide the code, would be easier to debug.
Sacha,
Could you provide the code, would be easier to debug.