I had a graphic layer in flex 3 .
I used querytask and query (using where clause) and
queryTask.execute( query, new AsyncResponder( onResultGetAA, onFaultGetAA ));
on the successhandler(onResultGetAA), the featureset.features were added to the graphiclayer.graphicprovider..
Note the layer I am query against is a polygon layer in arcgis rest service
Now in Flex 4, I wanted to use featurelayer instead of graphic layer for following reasons:
1) use mode=snapshot
2) useAMF=true(for arcgis 10 server)
I can use definitionexpression with where clause but I want to add a handler for successful query result where I need to process the featureset.features for other purpose...
My question is will it be better in terms of performance for using the feature layer in this situation?
Second, If I use feature layer, how I can add a handler for successful query result (as was in querytask)?
Thanks..