I used the sample: Zoom to Found Features source code at http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/ I want to retrieve the values of the found feature. In this piece of code private function executeCompleteHandler(event:FindEvent):void { myGraphicsLayer.clear(); myGraphicsLayer.symbol = sfsFind; var resultCount:int = event.findResults.length; if (resultCount == 0) { Alert.show("No record is found. Please change your search."); } else { // add feature as graphic to graphics layer for (var i:int = 0; i < resultCount; i++) { var graphic:Graphic = FindResult(event.findResults).feature; graphic.toolTip = event.findResults.foundFieldName + ": " + event.findResults.value; myGraphicsLayer.add(graphic);
// Code I added in order to retrive the values of the feature (where STF, COF, ... are the attribute names) var tempObj:Municipality = new Municipality(); tempObj.STF = event.findResults.STF; tempObj.COF = event.findResults.COF; tempObj.MCN = event.findResults.MCN; tempObj.Type = event.findResults.Type; tempObj.Area = event.findResults.Area; ...... } ...... } } But it does not work. How to revise the code to retrieve the values? Thanks.