Hi. I use a loader to import an image into flash.
I add a listener and start loading.Code:private var _loader:Loader = new Loader();
When it's complete I remove the listenerCode:_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete); _loader.load(new URLRequest("bilder/" + e.sökväg + "STOR.jpg"));
And I do absolutely nothing with the loaded image, I don't add it toCode:e.target.removeEventListener(Event.COMPLETE, loaderComplete);
the display list or anything. But when I use the unload() method on the loader it doesn't disappear from memory! Even if I set the _loader = null it doesn't free up the memory!
What the f*** is wrong? Any help would be deeply appreciated!
I check the System.totalMemory property and it just keeps stacking up if I repeat the process.




Reply With Quote