Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-16 Thread Jason Boyd
Frames aren't objects in memory; they are just concepts. (Key)frames are simply time markers when actions occur. Some of these actions are authored as ActionScript code; others are authored graphically, but the latter are the equivalent of writing addChild() and removeChild() statements to the

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-16 Thread Olivier Besson
Objects removed at any key frame therefore should be eligible for garbage collection, assuming no event listeners or other code created a reference to them. Yes. Another problem is: even if no listener or code references to these objects, they continue playing when they are removed by a

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-16 Thread Joel Stransky
@Jason, Yes, that is the sad truth I was hoping to avoid here. It's just another argument for adobe developing a built in Frame class. @Olivier, While listening for REMOVED_FROM_STAGE is a nice trick, its just one more listener to remove as part of clean. I'll trust myself to stop, close and

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-15 Thread Jason Boyd
You are asking a key question with AS3. Cleaning up movie clips is *hard*. There is a list of things that must be done, and they've made it hard to do all that. Here's a decent place to start reading: http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html 2009/1/14 Joel Stransky

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-15 Thread Joel Stransky
I've read that before. a couple of times. The question here is what happens to frames after the playhead leaves, not when Loader.unload() is called. I wasn't sure if each frame had their own display list or or just one per timeline. It seems like the sensible thing to do would have been to make a

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-14 Thread Cor
If you declare target_mc in your Parent class and addChild(target_mc)it does exist everywhere. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-14 Thread Joel Stransky
Are you saying display lists are persistent through an entire movieclips timeline? On Wed, Jan 14, 2009 at 7:32 AM, Cor c...@chello.nl wrote: If you declare target_mc in your Parent class and addChild(target_mc)it does exist everywhere. ___

[Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-13 Thread Joel Stransky
I know this is old news and most of you have just left timelines and mc's for dead and moved on. But I'm having a hard time believing AS3 screwed us this bad. I'm also just now getting hip enough with as3 to understand the topic. I've created a little test case involving a parent.swf and a