Skip To Content

Flex events

In this topic

Version 3.7

Flex events are generated when a change, such as user interaction (for example, click), network traffic (for example, sending and receiving data), or component modification (for example, 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:

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.

Events related to map, layer, and navigation

The following table lists the 15 events related to map, layer, and navigation:

Event

Description

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]

FlareEvent

Represents event objects specific to the Flare symbol.

FlareMouseEvent

Represents event objects specific to the Flare symbol.

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.

Events related to tasks

The following table lists the ten events related to tasks:

Event

Description

AttributeInspectorEvent

Represents event objects specific to the AttributeInspector. [New in version 3.0]

ClosestFacilityEvent

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

DetailsEvent

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

FindEvent

Represents event objects specific to FindTask.

FormFieldEvent

Represents event objects specific to FindTask. [New in version 3.0]

GenerateRendererEvent

Represents event objects that are specific to GenerateRendererTask. [New in version 3.0]

GeometryServiceEvent

Event dispatched when an AttributeInspectorFormField is updated.

GeoprocessorEvent

Represents event objects specific to Geoprocessor task.

IdentifyEvent

Represents event objects specific to IdentifyTask.

IdentityManagerEvent

Represents event objects that are specific to IdentityManager. [New in version 3.0]

ImageServiceIdentifyEvent

Represents event objects that are specific to ImageServiceIdentifyTask. [New in version 3.0]

InfoPlacementEvent

Bubbling event dispatched usually from an info container's content to reposition the container around its anchor location based on the value of the event infoPlacement property. [New in version 3.0]

JSONEvent

Represents event objects that are specific to JSONTask. [New in version 3.0]

LocatorEvent

Represents event objects specific to Locator tasks.

PortalEvent

Represents event objects that are specific to the portal. [New in version 3.0]

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]

TemplatePickerEvent

Represents event objects that are specific to TemplatePicker. [New in version 3.0]

WebMapEvent

Represents event objects that are specific to WebMapUtil. [New in version 3.0]

For more information about handling events in your Flex applications, see the Flex 3 Getting Started Guide Wiki article Handling Events.