RE: [flexcoders] Re: Using an itemRenderer in a grid and rendering glitches

2009-02-19 Thread Tracy Spratt
"...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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of lelander
Sent: Thursday, February 19, 2009 5:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an itemRenderer in a grid and rendering
glitches

 

--- In flexcoders@yahoogroups.com 
, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com
 , "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
 
>

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





RE: [flexcoders] Re: Using an itemRenderer in a grid and rendering glitches

2009-02-17 Thread Tracy Spratt
Right.  Or my response would be, "is your itemRenderer coded correctly?"

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Tuesday, February 17, 2009 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an itemRenderer in a grid and rendering
glitches

 

--- In flexcoders@yahoogroups.com 
, "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