2010年8月26日周四_underStanding Flex_FlexEvent_7.3

/*******************************************************/

//2010年8月26日

//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个事件

AttachmentEvent

Represents event objects specific to FeatureLayer attachment operations. [New in version 2.0]

DrawEvent

Represents event objects specific to DrawTool.

EditEvent

Represents event objects specific to EditTool. [New in version 2.0]

ExtentEvent

Represents event objects specific to map extent changes.

FeatureLayerEvent

Represents event objects specific to FeatureLayer. [New in version 2.0]

GraphicEvent

Represents event objects specific to graphics.

GraphicsLayerEvent

Represents event objects specific to GraphicsLayer. [New in version 2.0]

LayerEvent

Represents event objects specific to a Layer.

MapEvent

Represents event objects specific to the map.

MapImageEvent

Represents event objects specific to ArcGISDynamicMapServiceLayer.

MapMouseEvent

Represents event objects specific to map mouse events. [New in version 1.1]

NavigationEvent

Represents event objects specific to the navigation component.

PanEvent

Represents event objects specific to panning the map.

TimeExtentEvent

Represents event objects specific to time extent changes. [New in version 2.0]

ZoomEvent

Represents event objects specific to the zooming (changing scale) of the map.

Ten events related to tasks

和任务相关的10个事件。

ClosestFacilityEvent

Represents event objects specific to ClosestFacilityTask. [New in version 2.0]

DetailsEvent

Represents event objects specific to ClosestFacilityTask. [New in version 2.0]

FindEvent

Represents event objects specific to FindTask.

GeometryServiceEvent

Represents event objects specific to GeometryService tasks.

GeoprocessorEvent

Represents event objects specific to Geoprocessor task.

IdentifyEvent

Represents event objects specific to IdentifyTask.

LocatorEvent

Represents event objects specific to Locator tasks.

QueryEvent

Represents event objects specific to QueryTask.

RouteEvent

Represents event objects specific to RouteTask. [New in version 1.2]

ServiceAreaEvent

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

原文地址:https://www.cnblogs.com/xingchen/p/1808817.html