Select to view content in your preferred language

Capturing XY from Context Menu Item Click

1148
2
06-18-2011 04:10 PM
ZahidChaudhry
Deactivated User
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]
Tags (2)
0 Kudos
2 Replies
Drew
by
Frequent Contributor
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
0 Kudos
ZahidChaudhry
Deactivated User
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


Thank you very much. I was'nt thinking that way...!
0 Kudos