Perhaps you should perform the animation logic based on a combination of - 1. Data unique identifier didn't change. 2. Relevant data property did change.
Currently it sounds like any data change triggers the logic and since the item-renderers are being recycled it behaves this way (set data function is being called upon recycling) Regards, Evyatar On Wed, Jan 7, 2015 at 10:39 AM, DavidM <[email protected]> wrote: > Alex, I got it working with Spark Datagrid, sort of. > The cells blink, just like in the animation version (#2 above). > Additionally, it certainly seems way less resource intensive. > The problem (just like #2 above), is that all the cells change color when > they are first brought into view. > I'm not sure what causing that. > Here is the code: > > > <?xml version="1.0" encoding="utf-8"?> > <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library:// > ns.adobe.com/flex/spark" > width="400" > height="300" > > > <fx:Style> > @namespace s "library://ns.adobe.com/flex/spark"; > @namespace common "view.components.common.*"; > .on { > backgroundColor: red; > } > .off { > backgroundColor: white; > } > </fx:Style> > <fx:Script> > > </fx:Script> > > <s:Label id="labelDisplay" > height="22" > width="75" > verticalAlign="middle" > textAlign="right" > styleName="off" > /> > > </s:GridItemRenderer> > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Best-way-to-blink-a-Spark-Datagrid-cell-tp9334p9341.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >
