5 Replies Latest reply on Sep 2, 2010 12:57 PM by Flex harUI

    memory usage when removed from stage

    Ibarim Level 1

      Hi,

       

       

      I was wondering which solution is better in terms of memory usage: to remove component from stage or to make it null?

       

      this.removeChild(myComponent);

       

      or

       

      this.myComponent = null;

       

      I know it depends on whether I'll use this component in the future, and in my situation the component will be used rarely.

      Does a component, which is removed from stage, use much memory ?