Does this belong in the Flex forum for any reason?
Use this URL and replace "server" with the name of the server the services reside on and drill down to the service:
http://www.server.com/ArcGIS/rest/services
Add the reference to your layer when you do the query like:
queryTask.execute(query, new AsyncResponder(onResult, onFault, myLayerID));
Then define your result handler like :
function onResult(featureSet:FeatureSet, myLayerID:Number):void
{
...
}
I don't think you quite understood what I was asking. I have already executed a Query in Flex. In the query result method I have a FeatureSet returned from the server. I wondered if there was any way of knowing which layer this query was performed on, solely from the FeatureSet returned.
I'm having this issue because I am running multiple queries, with each possibly using a different layer and different geometry. As these are asynchronous calls, how am I to be certain which result belongs to which query (and therefore which layer)?