Jump to content
Search Community

McFreaq

Members
  • Posts

    2
  • Joined

  • Last visited

McFreaq's Achievements

0

Reputation

  1. Hello again. While I was not able to solve my described problem as such, I worked my way around it. That is I got rid of every possible library item in my loaded SWF files and loaded them at runtime using the corresponding LoaderMax loaders for the different media types. This was of course only possible because in this particular project I also was the author of the SWFs to load. I threw out all items heavy in file size like images and was astounded when I discovered that also using Flashs new TLF textfields ads a mere 2.5MB of ram usage every time I load and unload a SWF file containing such a textfield. Also all videos which I load, regardless of whether using my own code or the Greensock VideoLoader, account for an additional 1.5MB not removed from ram. In the end I was able to reduce the amount of data remaining in memory after unloading by about 90%, fine for this project but still not satisfying in general. If somebody however has some thoughts on how to solve the real issue of libraries in imported SWF files remaining in memory after disposal, I would be more than happy to learn more about it. PS: My flash application is an offline projector running on Mac and Windows PCs. I did not test if the described memory management problem exists when running the application in a browser/ online.
  2. Hi Guys, I have a pressing issue with a flash project in which I am using LoaderMax to load swf into a main application. I don't believe this is a LoaderMax issue, rather a flash bug in general or something having to to with application domains that I don't completely understand yet. Here is my test setup in which I tracked down the memory issue I'm having in the project: > I load an external swf file with the SWFLoader function into an empty movieclip in my main application > the swf file contains a jpg image positioned on stage plus 4 additional images in the library which have their export for actionscript option set to true > the swf file does not instantiate any of these images, nor does the main application into which the swf is loaded > when I unload the swf, some memory gets released BUT a certain amount (which is connected to the number of images in the library) stays in the system memory. > for unloading the swf I thoroughly remove all eventListeners, use loader.unload and loader.dispose(true), remove the container movieclip from the display list, null the reference to both the loader as well as the container mc into which the swf was loaded. How do I get rid of the loaded library content of the loaded swf???
×
×
  • Create New...