/*******************************************************/
//
//Flex event
//version 2.0
/******************************************************/
Flex events are generated when a change, such as user interaction (e.g., click), network traffic (e.g., sending and receiving data), or component modification
(修改,修饰) (e.g., resizing), occurs in the application.
An event listener, or handler, allows you to detect when these events occur and tell the Flex application how to respond.
Event listeners can be added easily with ActionScript:
Flex事件在发生改变的时候才会在应用程序中生成,比如:用户交互、网络堵塞、或者组件修饰等等。
一个事件侦听者,或者处理者,允许你侦查事件什么时候发生并告诉Flex应用程序如何去处理这个事件。
myMap.addEventListener(MouseEvent.CLICK, onClickFunction);
or MXML:
<esri:Map id="myMap" click="onClickFunction(event)">
The ArcGIS API for Flex adds specific events for map, navigation, and tasks, which are located in the com.esri.ags.events package.
ArcGIS API for Flex 为地图添加了特殊的事件,比如:导航,任务,这些事件都封装在com.esri.ags.events 包里面。
Fifteen events related to map, layer and navigation
和Map、图层、导航有关的15个事件
Represents event objects specific to FeatureLayer attachment operations. [New in version 2.0] |
|
Represents event objects specific to DrawTool. |
|
Represents event objects specific to EditTool. [New in version 2.0] |
|
Represents event objects specific to map extent changes. |
|
Represents event objects specific to FeatureLayer. [New in version 2.0] |
|
Represents event objects specific to graphics. |
|
Represents event objects specific to GraphicsLayer. [New in version 2.0] |
|
Represents event objects specific to a Layer. |
|
Represents event objects specific to the map. |
|
Represents event objects specific to ArcGISDynamicMapServiceLayer. |
|
Represents event objects specific to map mouse events. [New in version 1.1] |
|
Represents event objects specific to the navigation component. |
|
Represents event objects specific to panning the map. |
|
Represents event objects specific to time extent changes. [New in version 2.0] |
|
Represents event objects specific to the zooming (changing scale) of the map. |
Ten events related to tasks
和任务相关的10个事件。
Represents event objects specific to ClosestFacilityTask. [New in version 2.0] |
|
Represents event objects specific to ClosestFacilityTask. [New in version 2.0] |
|
Represents event objects specific to FindTask. |
|
Represents event objects specific to GeometryService tasks. |
|
Represents event objects specific to Geoprocessor task. |
|
Represents event objects specific to IdentifyTask. |
|
Represents event objects specific to Locator tasks. |
|
Represents event objects specific to QueryTask. |
|
Represents event objects specific to RouteTask. [New in version 1.2] |
|
Represents event objects specific to ServiceAreaTask. [New in version 2.0] |
For more information about handling events in your Flex applications, see the Flex 3 Getting Started Guide Wiki article Handling Events.
更多关于处理应用程序中的事件的信息,请查看Handling Events