"...override the set data protected function - but what do I change?..."
that depends on what your renderer does.

 

I suggest that you start with a renderer that someone else has written
and modify it to meet your purposes.  Either that or start reading up on
renderers.  Some of the key parts you should learn about are:

set data() 

commitProperties()

createChildren()

updateDisplayList

measure()

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of lelander
Sent: Thursday, February 19, 2009 5:10 PM
To: [email protected]
Subject: [flexcoders] Re: Using an itemRenderer in a grid and rendering
glitches

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Amy" <amyblankens...@...> wrote:
>
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "biosmonkey" <biosmonkey@> 
> wrote:
> >
> > I have an adg that displays a tree of items, along with a custom 
> item
> > renderer that shows an icon representing status.
> > 
> > For the most part this works well, however, in some rare 
> circumstances
> > when scrolling I have seen the item renderer glitch ... sometimes it
> > appears to be double rendered, sometimes it is rendered in the wrong
> > place. I have also seen the text labels in the tree superimpose on
> > top of themselves sometimes.
> > 
> > This problem is actually not unique to this situation, because I 
> have
> > seen it in other grids with IRs. This problem, however, just 
> happens
> > to be in a MAJOR project of mine :).
> > 
> > Has anyone else seen similar problems? I don't know how it would be
> > my code ... it seems more like a flash player bug. I am using flash
> > 10. Note also that my IR is not doing any graphical drawing; it is
> > essentially an hbox with an img that just gets its source changed.
> 
> Check out Q2
> http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
<http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf> 
>

I'm having the same problem, and checked out this pdf. Amy says to
override the set data 
protected function - but what do I change?

Thanks!
JP



Reply via email to