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

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 {
			try{
					new LocalConnection().connect("foo");
					new LocalConnection().connect("foo");
			}catch(error : Error){
}
				
 
var parentObject:Object = new Object();
function createMc():void{
parentObject.MyMovieClip = new MyMovieClipClass();
addChild(ParentObject.MyMovieClip)
}	
 
function delMc(){
 delete(ParentObject.MyMovieClip);
}

Open in new window

macaukenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

macaukenAuthor Commented:
but i found if i minmize the player window and maximum it, the memory decrease
0
blue-genieCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
macaukenAuthor Commented:
i see, thanks blue-genie
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.