I have implemented the following and I still have an issue with the windows resizing.
It seems that I have to flush something which is related to the segment list which is computed between 2 updates.I am getting an nice fireworks during the window resizing that I don't get during panning or zooming.I wish I could share a screenshoot.;-) Here the code.Sorry,I can send any attach file today. ////////////////////////////////////////////////////////////////////////\ //////////////////// public class Graph extends LineSeries { override protected function get renderDataType():Class { return MyLineSeriesRenderData; } override protected function updateFilter():void { super.updateFilter(); var myLineSeriesRenderData:MyLineSeriesRenderData=this.renderData as MyLineSeriesRenderData; myLineSeriesRenderData.prePxielFilteredCache=null; } override protected function updateTransform():void { super.updateTransform(); var t0:int = new Date().milliseconds; var myLineSeriesRenderData:MyLineSeriesRenderData=this.renderData as MyLineSeriesRenderData; if (myLineSeriesRenderData.prePxielFilteredCache==null)myLineSeriesRenderDa\ ta.prePxielFilteredCache=this.renderData.filteredCache; var x0:int=myLineSeriesRenderData.prePxielFilteredCache[0].x; var y0:int=myLineSeriesRenderData.prePxielFilteredCache[0].y; var npnts:Array = new Array(); npnts.push(myLineSeriesRenderData.prePxielFilteredCache[0]); for (var i:int=1;i<myLineSeriesRenderData.prePxielFilteredCache.length;i++) { var x1:int=myLineSeriesRenderData.prePxielFilteredCache[i].x; var y1:int=myLineSeriesRenderData.prePxielFilteredCache[i].y; if (x0!=x1 || y0!=y1) { npnts.push(myLineSeriesRenderData.prePxielFilteredCache[i]); x0=x1; y0=y1; } } myLineSeriesRenderData.filteredCache=npnts; var t1:int = new Date().milliseconds; trace(new Date().toString()+" "+myLineSeriesRenderData.prePxielFilteredCache.length+"/"+npnts.length+" in "+(t1-t0)+" (ms)"); } } ////////////////////////////////////////////////////////////////////////\ //////////////////// public class MyLineSeriesRenderData extends LineSeriesRenderData { public var prePxielFilteredCache:Array=null; } ////////////////////////////////////////////////////////////////////////\ //////////////////// --- In flexcoders@yahoogroups.com, "Claude Hussenet" <[EMAIL PROTECTED]> wrote: > > What is the way to filter points in a line serie after the point is > transformed from the "data space" to the "screen/mouse space" ? > > Is is by adding a filter function in a lineserie through the method > filters from a serie ? > > Is there an example available ? > > I am interested in filtering a point in the screen space based on the > previous value computed . > > > Thank you for your help. > Regards-CLaude >