Jump to content


  • Posts

  • Joined

  • Last visited

lhthai2010's Achievements


Newbie (1/14)



  1. Thanks for your answer! I did it! But I release by this way (because i still don't know how i can't remove all SWF file !!! ): I call e.target.dispost(true); when each target download complete. I just call myApplicationDomain = null; when i want to cleare memory! How do you think about my way? it is correct??? Thank you so much!
  2. Hi !! I'm using loadermax to load swf, image, ... it so usefull. But i have a problem. I can't release memory after loaded SWF file. I can't release memory use load file SWF, it just down a little memory. when i use queue.emty (true, true); it just delete a lasted swf file in memory (i don't know why??). Althought i make null applicationdomain! This is my code. I use var queue:LoaderMax= new LoaderMax({maxConnections:1}); queue.addEventListener(LoaderEvent.COMPLETE, TotalCompleteHandler); queue.addEventListener(LoaderEvent.CHILD_PROGRESS, childProgressHandler); queue.addEventListener(LoaderEvent.CHILD_COMPLETE, childCompleteHandler); queue.addEventListener(LoaderEvent.PROGRESS, TotalProgressHandler); queue.addEventListener(LoaderEvent.ERROR, childFailHandler); var appDomain : ApplicationDomain = new ApplicationDomain(); I run for to load SWF queue.append(new SWFLoader( (this.serverURL + loadConfig.elements(modul).SWFLoader[i].@url), { name:loadConfig.elements(modul).SWFLoader[i].@name, estimatedBytes:loadConfig.elements(modul).SWFLoader[i].@estimatedBytes, container:this, alpha:loadConfig.elements(modul).SWFLoader[i].@alpha, x:loadConfig.elements(modul).SWFLoader[i].@x, y:loadConfig.elements(modul).SWFLoader[i].@y, width:loadConfig.elements(modul).SWFLoader[i].@width, height:loadConfig.elements(modul).SWFLoader[i].@height, context:new LoaderContext(false, appDomain) } )); this is my code to unload all file in SWF: queue.empty(true, true); System.gc(); appDomain = null; System.gc(); when i call Unload all file. i still see SWF files that i was loaded. (i use TheMiner to see file i loaded) Thanks so much!!!!