var graLayAC:ArrayCollection = graphicsLayer.graphicProvider as ArrayCollection; if (graLayAC.length > 0) { geomArr = []; for each (var graphic:Graphic in graphicsLayer.graphicProvider) { geomArr.push(graphic.geometry); } //send the geomArr to buffer }
bufferParameters.geometries =[geomArr];
bufferParameters.geometries =geomArr;