--- In [email protected], "jer_ela" <g...@...> wrote:
>
> If the new rows have a timestamp of when they were added, you can use
> the AdvancedDataGrid styleFunction to change the style of a cell based
> on that timestamp.  Both AdvancedDataGrid and AdvancedDataGridColumn
> have the property.
> 
> Here is a style function I used that made the text bright red for new
> records and then faded to black as the record aged.
> 
> 
> protected function styleElapsedTime(data:Object,  
>    col:AdvancedDataGridColumn):Object
> {  var color:uint = 0xff0000;
>    var ts:Date = new Date(data.timeStamp);
>    var now:Date = new Date();
>    var elapsedTime:int = (now.time - ts.time) / 60000 ;
>    color = ColorUtil.adjustBrightness(color, - (elapsedTime * 4));
>    return {color: color};
> }



If I don't need the AdvancedDataGrid do you think it's ok to use it
only for this effect or there is an overhead?
I tried your solution, but I think that the problem is that I need to 
refresh the datagrid for changing color.
I don't think this is a viable solution because I have thousand of
rows, I would only blink the new rows for one second.

Reply via email to