Hello,I've been working on my problem for hours now and I'm still not able to get my edit tool to activate itself.I have looked at the sample http://resources.arcgis.com/en/help/flex-api/samples/index.html#//01nq00000043000000 and it really helped me for my project.I'm currently doing my own editor and I'm at the part where I want to activate the edit tool when I click on a graphic to be able to move it. I use only point.Here's some code :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); }
I know that normally, when the edit tool activates itself, the cursor changes from the pan (white glove) to a the one by default (white arrow) and when you mouseOver the selected graphic, the cursor changes to a cross, but it's not my case, nothing happens, the pan stays and I can't move the graphic.My edit tool : <esri:EditTool id="editTool" graphicsMoveStop="editTool_graphicsMoveHandler(event)" map="{map}"/>
Let me know if you guys need more code or info!Thx alot!