What is the best way to capture XY from Context menu. I added a context menu and when i click, it capture xy. I am not satisfied with the results. any help ...
[HTML]
protected function contextMenuItem_menuItemSelect(event:ContextMenuEvent):void{
myMapPoint = new MapPoint();
myMapPoint = myMap.toMapFromStage(event.contextMenuOwner.mouseX, event.contextMenuOwner.mouseY);
}
[/HTML]
Download my Flex widget and see the source code on how I did it.
Coordinate Menu Widget
http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e
Drew