I've done some more investigation and playing around...If I do this:var mme:MapMouseEvent = new MapMouseEvent(MapMouseEvent.MAP_CLICK, map, idResult.point);
var result:Boolean = dispatchEvent(mme);
No exceptions are thrown but nothing happens either.If I do this:var mme:MapMouseEvent = new MapMouseEvent(MapMouseEvent.MAP_CLICK, map, idResult.point);
var result:Boolean = map.dispatchEvent(mme);
Then I get the exception listed in the original posting.Conclusion: it looks like the event needs to be dispatched by the map object as well as the event having a reference to the map object.If I do this:var result:Boolean = map.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, false));
No exceptions are thrown but nothing happens either.Conclusion: it looks like the event needs to be a MapMouseEvent, not just a regular MouseEvent.Finally, if I do this:var mme:MapMouseEvent = new MapMouseEvent(MapMouseEvent.MAP_CLICK, map, idResult.point);
var sp:Point = map.toScreen(idResult.point);
mme.localX = sp.x;
mme.localY = sp.y;
var result:Boolean = map.dispatchEvent(mme);
I still get the exception thrown in the original posting.Conclusion: setting coordinates on the MapMouseEvent makes no difference, so I'm really not sure how to prevent the exception thrown in the original posting...