2 Replies Latest reply on Apr 7, 2010 12:22 PM by leaflashdev

    Remove all child on MediaContainer - OSMF -

    leaflashdev Level 1

      Hello ,

       

      I have some problem to remove everything from my mediaContainer

       

      I created a array and put everything that I add with :  currentMediaElement = mediaContainer.addMediaElement(MediaElement1);

       

      and to clean I do

       

                     for (var i:int=0;i<=arrayMediaChild.length-1;i++){
                         mediaContainer.removeMediaElement(arrayMediaChild[i]);
                     }

       

      How can I kill all the content of mediacontainer and create a new one

       

      I have a memory problem , the memory keep increased

       

      Thanks