Where to call addEventListener for TimeExtentEvent

670
2
Jump to solution
01-23-2012 02:56 PM
EricAnderson
New Contributor II
I'm trying to monitor my time slider changes and want to add an event listener for the TimeExtentEvent. Neither the Map class, the TimeSlider class nor the Layer class seem to allow for addEventListener(TimeExtentEvent.TIME_EXTENT_CHANGE). When I attempt to add a listener for this event to any of these valid classes, I get an "Access of undefined porperty TimeExtentEvent" error in Flash Builder.

Does anyone know where a listener can be added for this event?

Thank you,

Eric Anderson
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
IvanBespalov
Occasional Contributor III
Neither the Map class, the TimeSlider class nor the Layer class seem to allow for addEventListener(TimeExtentEvent.TIME_EXTENT_CHANGE).

:confused:

TimeSlider - > timeExtentChange (Since :  ArcGIS API for Flex 2.0)

Map - > timeExtentChange

In one of ESRI samples find the way how to implement it.

P.S. From adobe.

View solution in original post

0 Kudos
2 Replies
IvanBespalov
Occasional Contributor III
Neither the Map class, the TimeSlider class nor the Layer class seem to allow for addEventListener(TimeExtentEvent.TIME_EXTENT_CHANGE).

:confused:

TimeSlider - > timeExtentChange (Since :  ArcGIS API for Flex 2.0)

Map - > timeExtentChange

In one of ESRI samples find the way how to implement it.

P.S. From adobe.
0 Kudos
EricAnderson
New Contributor II
Thank you. That answered it, I needed to have this in the code (doh!):

import
com.esri.ags.events.TimeExtentEvent;

Eric
0 Kudos