Mohammed, So the fix for this issue is to replace this function in the code. private function searchDrawEnd(event:DrawEvent):void { event.target.deactivate(); var geom:Geometry; if(event.graphic.geometry is Extent) geom = Extent(event.graphic.geometry).toPolygon(); else geom = event.graphic.geometry; clearBuffer(); queryFeaturesGraphical(geom,"esriSpatialRelIntersects",configSearchGraphical[cboLayerGraphical.selectedIndex]); }
I will update the download on the code gallery soon.Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below: