| Package | com.esri.ags.tasks |
| Class | public class FindTask |
| Inheritance | FindTask BaseTask flash.events.EventDispatcher |
Set the URL to the ArcGIS Server REST resource that represents a map service, for example, http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer. For more information on constructing a URL, see Using the ArcGIS Services Directory.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | autoNormalize : Boolean
If true, normalizes the geometries across the central meridian. | BaseTask | |
![]() | concurrency : String
Value that indicates how to handle multiple calls to the same task. | BaseTask | |
![]() | disableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from
being loaded from the browser's cache. | BaseTask | |
| executeLastResult : Array [read-only]
Array of FindResult object returned from last call to the execute function. | FindTask | ||
![]() | method : String
URL request method to use. | BaseTask | |
![]() | proxyURL : String
The URL to proxy the request through. | BaseTask | |
![]() | requestTimeout : int
The request timeout in seconds. | BaseTask | |
![]() | showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing. | BaseTask | |
![]() | token : String
Token for accessing a secure task. | BaseTask | |
![]() | url : String
URL of the task. | BaseTask | |
| Method | Defined By | ||
|---|---|---|---|
FindTask(url:String = null)
Creates a new FindTask object. | FindTask | ||
execute(findParameters:FindParameters, responder:IResponder = null):AsyncToken
Sends a request to the ArcGIS REST map service resource to perform a search based
on the FindParameters specified in the findParameters argument. | FindTask | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when execute operation successfully completes. | FindTask | |||
| Dispatched when a FindTask fails. | FindTask | |||
| executeLastResult | property |
executeLastResult:Array [read-only] Array of FindResult object returned from last call to the execute function.
This property can be used as the source for data binding.
public function get executeLastResult():ArraySee also
| FindTask | () | Constructor |
public function FindTask(url:String = null)Creates a new FindTask object.
Parametersurl:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a map service.
|
| execute | () | method |
public function execute(findParameters:FindParameters, responder:IResponder = null):AsyncTokenSends a request to the ArcGIS REST map service resource to perform a search based on the FindParameters specified in the findParameters argument. On completion, the findComplete event is fired and the optional responder is called.
Parameters
findParameters:FindParameters — The criteria used to find the features.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken —
|
| executeComplete | Event |
com.esri.ags.events.FindEventcom.esri.ags.events.FindEvent.EXECUTE_COMPLETEDispatched when execute operation successfully completes.
Defines the value of thetype property of an executeComplete event object.
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when a FindTask fails.