The problem with the events is that if I listen to changes in the array, I 
don't have access 
to the chart when the event fires.  You can't pass arguments to the event so 
the only thing 
it will know about is the array which fires it.  And as I said before, when I 
create custom 
events, I have to dispatch them myself and they never get called when I need 
them to, but 
are always "late".

My best guess was to try FlexEvent.UPDATE_COMPLETE but that seems to never get 
fired 
when I simply append to the array which is the dataprovider for the axis.

So I'm unsure what to do with these suggestions.

Thanks, though!

--- In [email protected], "Sunil Bannur" <[EMAIL PROTECTED]> wrote:
>
> When the dataprovider changes, each series's protected dataChanged
> function gets called.
> 
> Also, you could access the chart's dataProvider as a ICollection and add
> an event listener to it to keep track of the data changes.
> 
>  
> 
> Thanks
> 
> -Sunil
> 
>  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of netdeep
> Sent: Thursday, May 22, 2008 11:25 PM
> To: [email protected]
> Subject: [flexcoders] chart data change events
> 
>  
> 
> I need to capture an event for when the data is updated in a chart. I
> take a snapshot of the 
> chart and save it to a file. But when I do it via a custom event which I
> fire myself, it fires the 
> event and takes the screenshot before the update and so just snapshots
> the previous state of 
> the chart. And if I use FlexEvent.UPDATE_COMPLETE, it doesn't register a
> change since what 
> I am doing is adding data to the array which is the dataProvider for the
> chart. I can't put an 
> update event listener to the array itself since the array does not have
> any way to reference 
> back to it's chart. 
> 
> Any help would be greatly appreciated
>



Reply via email to