Karen, Here is your the part of your code that had issues with some comments: private function bufferMapPoint():void
{
var bufferParameters:BufferParameters = new BufferParameters();
bufferParameters.distances = [5,10];
//You were never passing in any geometry to the buffer parameters
bufferParameters.geometries = [graphicsLayer.graphicProvider[0].geometry]
bufferParameters.unit = GeometryService.UNIT_STATUTE_MILE;
bufferParameters.bufferSpatialReference = myMap.spatialReference;
myGeometryService.addEventListener(GeometryServiceEvent.BUFFER_COMPLETE,bufferCompleteHandler);
myGeometryService.buffer(bufferParameters);
function bufferCompleteHandler(event:GeometryServiceEvent): void
{
myGeometryService.removeEventListener(GeometryServiceEvent.BUFFER_COMPLETE,bufferCompleteHandler);
//The result of a buffer operation does not return graphics in the 2.x API
//it returns geometries
for each (var geom:Geometry in event.result)
{
var graphic:Graphic = new Graphic();
graphic.symbol = sfs;
graphic.geometry = geom;
graphicsLayer.add(graphic);
}
}
}