Solved! Go to Solution.
private var xThru:int = 0;
if(xThru == 0){ applyBuffer(); xThru++; }
xThru = 0;
if(isGraphicalBufferOp){
queryFeaturesGraphical(resultEvent, "esriSpatialRelIntersects", configSearchGraphical[(cboLayerGraphical.selectedIndex < 0)?0:cboLayerGraphical.selectedIndex]);
}
Mark,
At the end of the bufferCompleteHandler there are these lines that are causing your loop scenario:if(isGraphicalBufferOp){ queryFeaturesGraphical(resultEvent, "esriSpatialRelIntersects", configSearchGraphical[(cboLayerGraphical.selectedIndex < 0)?0:cboLayerGraphical.selectedIndex]); }
I would suggest you make that if statement false after you have completed your required steps.
if(isGraphicalBufferOp){ queryFeaturesGraphical(resultEvent, "esriSpatialRelIntersects", configSearchGraphical[(cboLayerGraphical.selectedIndex < 0)?0:cboLayerGraphical.selectedIndex]); } //Added by Mark 5/13/14 intersectResults("esriSpatialRelIntersects"); } catch (error:Error){ showMessage(error.message, false); }
if(isGraphicalBufferOp){
queryFeaturesGraphical(resultEvent, "esriSpatialRelIntersects", configSearchGraphical[(cboLayerGraphical.selectedIndex < 0)?0:cboLayerGraphical.selectedIndex]);
}
isGraphicalBufferOp = false
if(isGraphicalBufferOp){ queryFeaturesGraphical(resultEvent, "esriSpatialRelIntersects", configSearchGraphical[(cboLayerGraphical.selectedIndex < 0)?0:cboLayerGraphical.selectedIndex]); } //Added by Mark 5/13/14 intersectResults("esriSpatialRelIntersects"); }
private var xThru:int = 0;
if(xThru == 0){ applyBuffer(); xThru++; }
xThru = 0;