Pete, Try using the built-in MapPoint that is returned by MapMouseEvent. protected function MapClickHandler(event:MapMouseEvent):void
{
const mapPoint:MapPoint = event.mapPoint;
mapPoint.spatialReference = new SpatialReference(102100);
var myGraphicMarker:Graphic = new Graphic(mapPoint,
new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_DIAMOND, 22, 0x009933));
myGraphicMarker.toolTip = "Marker added with ActionScript";
pointGraphicsLayer.add(myGraphicMarker);
pointGraphicsLayer.refresh();
}
And you need to terminate your GraphicsLayer:<esri:Map id="theMap" mapClick="MapClickHandler(event)">
<esri:GraphicsLayer id="pointGraphicsLayer" />
</esri:Map>
Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below: