Are you changing the entire dp or values inside it?  Is memory usage
going up?  What gets slower?  Scrolling? Something else?  What kinds of
custom component is it?

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson
Sent: Friday, April 06, 2007 5:28 PM
To: [email protected]
Subject: [flexcomponents] changing dataprovider on custom component

 

I have a custom component that works pretty well. When I change the
dataProvider while the application is running it gets slower and
slower. The more I change it the worse it gets. 

In my updateDisplayList I call graphics.clear(); . Do i need to
override the dataprovider function and call graphics.clear(); there? 
If so could someone show me how?

I also call invalidateDisplayList on my component(s) from my main
application. Im guessing this is bad practice and it should be called
some where inside (perhaps when I set the dataprovider?)

If not, what do you think is wrong?

 

Reply via email to