Using an anvil to place a thumbtack approach, you could use flash player 10.1 and it's new 'unloadAndStop' method
http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/display/Loader.html#unloadAndStop%28%29

Also i've also had instances where the memory profiler crashes the SWF once it's loaded. What I had to do was divert any loading of content, asset heavy classes till a few seconds after the initial startup


Mario Gonzalez,
http://onedayitwillmake.com

On Jan 31, 2010, at 2:39 PM, Jer Brand wrote:

I'm sure someone will correct me if I'm wrong, but it's not just
listeners. It's references to objects in the swf you want to unload.
So say if your code creates a reference to a movieClip in that swf,
you have to clear that reference or the GC won't reclaim the memory.

I was also under the impression that any timeline animations would
continue to run unless stopped, until the GC removed them. This might
be especially problematic if said timeline animation has frame script.
I'd guess you've seen this before, but if not:
http://www.gskinner.com/talks/resource-management/ has some good info.
I know he's got other articles on his site on this topic, but my
google skills are failing me at the moment.

Hope this helps.

Jer


On Sun, Jan 31, 2010 at 4:07 AM, Weyert de Boer <[email protected]> wrote:
Hmm, I am reading 8 XML files every 30 seconds using XMLList and XML objects. Are you saying that AS3 XML objects have a big memory leak? Hopefully, the profiler will work tomorrow so I can try to hunt down some issues.

If I remember correctly, I don't need to release timeline animations/movieclips manually when removing the SWF, right? As long I haven't attached any event handlers to it? Correct?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to