0 Replies Latest reply on Jun 12, 2009 7:30 AM by flexchief

    UIComponent - Remove All BitmapData

    flexchief Level 1

      Hey,

       

      I'm using a cool flex component developed by Ely Greenfield called DisplayShelf. The compnent is used to display images in a fashion similar to the iTunes coverflow component - http://www.quietlyscheming.com/blog/components/tutorial-displayshelf-component/. This DisplayShelf component extends UIComponent.

       

      When I load more and more images into the DisplayShelf the performance begins to suffer, which I believe is due to the number of bitmap objects which are drawn as each image is added.

       

      My question is:

      Is there a way to completely remove all bitmap data from a UIComponent using the standard bitmapData.dispose() method or failing that is it possible to simply delete all UIComponent children from memory i.e. not to use removeAllChildren which still keeps them in memory?

       

      Thanks

      Adam

      Flexchief