If you're already manually removing event listeners and deleting created 
objects, and you really wanna nail this and don't mind spending a few hours 
learning something new then I totally recommend the Temple Library for 
ActionScript 3 by MediaMonks

http://code.google.com/p/templelibrary/

Extend all your MovieClips from 'CoreMovieClip', utilise the 'destruct' method, 
and view/test the results in the 'Memory' class.

It's saved my bacon, hope it's useful to you too.

C:

-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of [p e r c e p t 
i c o n]
Sent: Wednesday, 19 October 2011 7:31 AM
To: Flash Coders List
Subject: Re: [Flashcoders] animation memory leak ... please help

yes, i delete it and mark it null..

thx all

On Tue, Oct 18, 2011 at 1:13 PM, Ross Sclafani <ross.sclaf...@gmail.com>wrote:

> Are you disposing of the image after it is offscreen? Have you run the
> profiler to see what's happening?
>
> Ross P. Sclafani
> Design | Technology | Creative
> 347.204.5714
> http://ross.sclafani.net
> http://www.twitter.com/rosssclafani
>
> On Oct 18, 2011, at 4:00 PM, Adrian Zając <zajac.adr...@gmail.com> wrote:
>
> > I think I had this problem once...
> > How many of images do you have? Maybe it will be better to make the same
> number of movie clips, and download every jpg only once?
> >
> >
> > Adrian
> >
> > W dniu 2011-10-18 20:39, [p e r c e p t i c o n] pisze:
> >> Hi All,
> >>
> >> I have an excrutiating memory leak.  Here's what i'm doing.
> >>
> >> first some specs:
> >>
> >> AS2, FP10+, Linux OS, ff browser
> >>
> >> I load a jpg into one of two movie clips...once a specified amount of
> time
> >> has expired
> >> i load the next image (download it using moviclip loader) and animate
> the
> >> visible movieclip off stage (slide it to the left or right) and at the
> same
> >> time i animate it
> >> i also fade it (mc._alpha -= mc._alpha-someAmount).
> >> i swap their depths and repeat this process.
> >>
> >> what i'd like to know is why after so many hours (8-24) flash starts
> slowing
> >> down and ultimately throws up the abort script dialog when i'm not
> really
> >> doing anything all that intensive..
> >> can someone explain how flash handles animations internally for
> example...it
> >> creates a copy of the image in memory..moves it then blits it the
> screen.
> >>
> >> can anyone give me some pointers as to where to begin looking for this
> leak
> >> or if you think this is flash player bug....
> >>
> >> all advise helpful
> >>
> >> thanks
> >>
> >> percy
> >>
> >>
> >>
> >>
> >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
  .             :               .
  [ p e r c e p t i c o n ]
  . _ _ _ _ _ _ _ _ _ _  .
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to