Sunday, May 27, 2012

[Action Script] removing objects from memory May,2012

is the below enough to remove the movie on currentPage from memory via the null value? My aim is to remove the movie from memory after being removed from contentMc?? ActionScript Code: if (currentPage && currentPage.parent) contentMc.removeChild(currentPage);         currentPage = null;         //trace(contentMc.numChildren, currentPage);        currentPage = contentMc.addChild(pages[btns.indexOf(e.currentTarget)]);        //trace(contentMc.numChildren, currentPage);
removing objects from memory

Related Post



0 comments: