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
MovieClip. There is one display list that has things added and removed (or
transformed or Tweened) as the playhead advances. 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.

Is this explanation helpful?


2009/1/15 Joel Stransky <[email protected]>

> 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
> Frame class that extends DisplayObjectContainer where their display lists
> were eligable for gc after the playhead left. I set up the test files with
> the intention of seeing if fp9 acted that way or not.
>
> On Thu, Jan 15, 2009 at 10:55 PM, Jason Boyd <[email protected]> wrote:
>
> > 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 <[email protected]>
> >
> > > Are you saying display lists are persistent through an entire
> movieclips
> > > timeline?
> > >
> > > On Wed, Jan 14, 2009 at 7:32 AM, Cor <[email protected]> wrote:
> > >
> > > > If you declare target_mc in your Parent class and
> addChild(target_mc)it
> > > > does exist everywhere.
> > > >
> > > > _______________________________________________
> > > > Flashcoders mailing list
> > > > [email protected]
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > >
> > >
> > >
> > > --
> > > --Joel Stransky
> > > stranskydesign.com
> > > _______________________________________________
> > > Flashcoders mailing list
> > > [email protected]
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> --Joel Stransky
> stranskydesign.com
> _______________________________________________
> 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