On 8/31/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote:

Of course I'm swapping depths before I remove it.
I see it removed, but the memory doesn't free

Dimitrios


----- Original Message -----
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, August 31, 2006 9:09 PM
Subject: RE: [FlashCoders] Images stay on memory forever?


That is correct.  If you want to remove a movieclip that you did not
attach using attachMovie (one that is manually there on a layer in the
timeline at compile) then you have to first swapDepths() it and then you
can removeMovieClip it.



BLITZ | Steven Sacks - 310-551-0200 x209


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of eric dolecki
> Sent: Thursday, August 31, 2006 10:52 AM
> To: Flashcoders mailing list
> Subject: Re: [FlashCoders] Images stay on memory forever?
>
> to remove a movieclip, you need to create or attach it first. if
you're
> using the IDE to place the mcs, you can't use removeMovieClip().
>
> if a mc is not on stage, is invisible, it will still be rendered by
the
> player.
>
> Thats the way it works, whether it makes sense to you or not.
>
> On 8/31/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote:
> >
> > Hi Steven,
> >
> > Thanks for the information.
> > I've read this great article before, I'll read it once more
> > to refresh my memory.
> >
> > My mistake, I forgot to mention that I have the same issue
> > even if I remove the movieclip with removeMovieClip(),
> > or move it to negative coords, outside the visible stage area.
> >
> > Does this still make sense? Well, not to me!
> >
> > Dimitrios
> >
> >
> >
> > ----- Original Message -----
> > From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> > Sent: Thursday, August 31, 2006 8:32 PM
> > Subject: RE: [FlashCoders] Images stay on memory forever?
> >
> >
> > Setting a movieclip to invisible doesn't free up memory, nor does it
> > reduce processing power that anything in that clip is doing.  The
only
> > thing it frees up is drawing power, which can help in some cases.
> >
> > The Flash garbage collector is not as good as it could be and we
> > currently don't have any hooks into it.  It's very easy for memory
waste
> > (as opposed to a leak) to occur when one isn't sure how it happens.
> >
> > Here is a great article on Scope Chain and Memory Waste. Recommended
> > reading for anyone interested in memory management in Flash.
> > http://timotheegroleau.com/Flash/articles/scope_chain.htm
> >
> > That being said, back in the Director days clients used to freak out
> > because Director used 99% of the CPU.  What they didn't understand
was
> > that it would readily give up any of its processing power when
anything
> > else needed it, but as long as it was running, it used as much
available
> > CPU as it could to ensure it ran as smoothly as possible.  If your
> > client is giving you a hard time over a few thousand k of memory
usage,
> > your project is going too well.  Slow it down and miss some
milestones.
> > Give them something important to pester you about.  ;)
> >
> > HTH!
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to