can not release memory in flash standalone player 9 or ver 10

Posted on 2008-11-11
Medium Priority
Last Modified: 2013-11-11
I have a lot  of customize movieclip on screen , but i want to remove all of them while user back to home screen, i use dispose() function before call system.gc() in  the class, and even use delete key work to delete them cause i create them as dynami property ( please see createMc()); i can delete in a removeObj() function . i watch the memory usage in task manager, the flash will not release any memory after i remove use delMc() function.
private function dispose() : void {
					new LocalConnection().connect("foo");
					new LocalConnection().connect("foo");
			}catch(error : Error){
var parentObject:Object = new Object();
function createMc():void{
parentObject.MyMovieClip = new MyMovieClipClass();
function delMc(){

Open in new window

Question by:macauken
  • 2

Author Comment

ID: 22936659
but i found if i minmize the player window and maximum it, the memory decrease
LVL 39

Accepted Solution

blue-genie earned 500 total points
ID: 22942485
ah good old flash garbage collection. I think there's been a lot of requests to the adobe techs to fix that. There's still to this day no way to force the flash player to do garbage collection. you've followed all best practices in removing items not required, make sure all references to it are deleted, make sure you remove eventlisteners when done and not needed any more, and that's about it. the rest is up to FP.

remember that if you have a clip called myclip;
and then you have a var myref:Object = myclip;
and you delete myclip, it's still being referenced by myref and hence will not be gc'd.
there are alot of articles of Flash GC on the adobe website.

Author Comment

ID: 22946765
i see, thanks blue-genie

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question