Hello,
I am stuck with an issue whose solution I cannot find on the Internet.
I have an application with a DataGrid:
<mx:DataGrid id="currentConstructions">
<mx:columns>
<mx:DataGridColumn dataField="buildingType"/>
<mx:DataGridColumn dataField="endDate" id="remainingTime"
itemRenderer="org.feilun.renderer.CountDownRenderer" />
</mx:columns>
</mx:DataGrid>
where CountDownRenderer is a custom ItemRenderer that can dispatch a
TimerEvent.TIMER_COMPLETE event.
I would like to listen in my main application (where the DataGrid is
defined) to this TIMER_COMPLETE event, but I have not managed to do it.
I have tried things like:
currentConstructions.addEventListener(TimerEvent.TIMER_COMPLETE,
handleTimerComplete);
or
remainingTime.addEventListener(TimerEvent.TIMER_COMPLETE,
handleTimerComplete);
but in neither case is the event caught.
Do you have any idea on how this could be achieved?
Thanks a lot,
Sébastien