Hi Dave,
Thank you for your reply!
I tried everything you described here. Unfortunately, I still got the same
problem.
I guess I'm not doing something right here...
This is my code now:
_root.attachMovie("p1", "p1", 10);
_root.attachMovie("p2", "p2", 20);
n = 1;
btn.onRelease = function():Void {
_root["p"+n].gotoAndStop(2); // frame 2 is empty
_root["p"+n].removeMovieClip();
n++;
}
I even tried removing the movie clip on the next frame, after calling
gotoAndStop(2).
Still the same.
Any thoughts?
Dimitrios
----- Original Message -----
From: "dave matthews" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 31, 2006 11:02 PM
Subject: [Flashcoders] RE: Images stay on memory forever?
hi Dimitrios,
re: Anyone got any idea?
We had problems last year with something similar, loading 6 layers of
tiles in a 10 x 10 grid from the terraserver:
http://www.davidmatthews.com/dad/07-03-05-maplicator.swf press n
slide/pan, double click n hold slide to zoom.
Turns out .jpg's decompress to over 3 times their size to render in the
player.
The solution we used to get rid of the memory bloat is to use loadmovie
into target clips, which throws the previous .jpg's out of the clip and
player - replacing it with the new content.
For a greater number of loaded movies, when we change layers in the
maplicator for example, we actually move to a blank frame in the target
clip's timeline.
By moving to a frame where the target clips no longer exist we force the
player to abandon the previously loaded .jpg's along with their holder
clips which also frees memory because those targets and their content are
no longer anywhere in the timeline or player.
Because the .jpg's are still in the browser cache (but not in the
player), when the user zooms out and we move back to the empty target
clips in their timeline, reloading those .jpg's is instantaneous, as they
are not reoaded from the server.
hth,
Dave_Matthews
p.s. Martin, is this true? - does the player really NOT render things
placed way off stage?
"Im not sure if this is still the case in fp8 but i know that in previous
versions i would also move a clip to -10000,-10000 to stop the renderer
from
including it."
martin
------------------------------
Message: 8
Date: Thu, 31 Aug 2006 18:53:31 +0200
From: Martin Wood <[EMAIL PROTECTED]>
Subject: Re: [FlashCoders] Images stay on memory forever?
To: Flashcoders mailing list <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-7; format=flowed
Sounds perfectly normal to me, making something invisble in flash doesnt
mean it
will unload the content from memory, in fact it doesnt necessarily mean it
wont
get rendered.
Im not sure if this is still the case in fp8 but i know that in previous
versions i would also move a clip to -10000,-10000 to stop the renderer
from
including it.
martin
Dimitrios Bendilas wrote:
Sorry for posting again,
Anyone got any idea?
_______________________________________________
[email protected]
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