I tried to develop a geoprocessing widget which allows to establish buffers around points from my map service.on "onResult" function I encounter this problem:"Access to the property parameterValues ??????perhaps not defined through a reference with static type com.esri.ags.tasks.supportClasses: ExecuteResult." I don't understand this error , someone can help me please I am a beginner programming flex and I have a great desire to make this work.Thanks for any help that could be offered!this is the entire code: <?xml version="1.0" encoding="utf-8"?> <!-- /////////////////////////////////////////////////////////////////////////// // Copyright (c) 2010-2011 Esri. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /////////////////////////////////////////////////////////////////////////// --> <viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:viewer="com.esri.viewer.*" xmlns:esri="http://www.esri.com/2008/ags" creationComplete="init()"> <fx:Script> <![CDATA[ import com.esri.ags.FeatureSet; import com.esri.ags.events.GeoprocessorEvent; import com.esri.ags.layers.GraphicsLayer; import com.esri.ags.tasks.supportClasses.ExecuteResult; import com.esri.ags.tasks.supportClasses.LinearUnit; import com.esri.ags.tasks.supportClasses.ParameterValue; import mx.controls.Alert; import mx.rpc.AsyncResponder; public var graphiclayer:GraphicsLayer=new GraphicsLayer(); private var mybufferdistance:LinearUnit= new LinearUnit(); private function init():void { myGraphicsLayer.clear(); graphiclayer=new GraphicsLayer(); graphiclayer.symbol= buffpointSimpleFill; map.addLayer(graphiclayer); } private function createRequestObject():Object { var myfeatureset:FeatureSet=new FeatureSet(); mybufferdistance.distance=Number(bufferdistance.text); mybufferdistance.units="esriMeters"; var params:Object= { "GPBuffer_DBO_points": myfeatureset, "Distance_ ": mybufferdistance } return params; } private function buffer():void { var params:Object=createRequestObject(); gp.execute(params,new AsyncResponder(onResult, onFault)); function onResult(gpResultat:ExecuteResult=null,token:Object=null):void { var pv:ParameterValue=gpResultat.parameterValues[0]; var fs:FeatureSet=pv.value as FeatureSet; graphiclayer.graphicProvider=fs.features; } function onFault(info:Object,token:Object=null):void { Alert.show(info.tostring()); graphiclayer.clear(); } } private function DoClear():void { graphiclayer.clear(); } ]]> </fx:Script> <fx:Declarations> <esri:SimpleFillSymbol id="buffpointSimpleFill" alpha="0.5" color="0xFF0000"> <esri:SimpleLineSymbol width="1" alpha="0.5" color="0x000000"/> </esri:SimpleFillSymbol> <esri:Geoprocessor id="gp" url="http://localhost:6080/arcgis/rest/services/Geotraitement/BufferPoint/GPServer/BufferPoint" useAMF="false"/> </fx:Declarations> <esri:GraphicsLayer id="myGraphicsLayer"/> <viewer:WidgetTemplate id="MyTestWidget" width="300" height="300"> <s:TextInput x="86" y="76" id="bufferdistance"/> <s:Button x="114" y="149" label="buffer" click="buffer()"/> <s:Button x="115" y="212" label="Clear" click="DoClear()"/> </viewer:WidgetTemplate> </viewer:BaseWidget>