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

Reply via email to