Hi,
Check this simplest code
public function DoStuff():void {
**[SIZE=2][COLOR=#7f0055] var**[/COLOR][/SIZE][SIZE=2] mc:[/SIZE]**[SIZE=2][COLOR=#373737]MovieClip**[/COLOR][/SIZE][SIZE=2] = new SomethingBig();[/SIZE]
mc = null;[SIZE=2]
[/SIZE]}
DoStuff();
the MovieClip “SomethingBig” is a movieClip of 7000x7000 with a lot of animations and stuff. Read here : LOT OF MEMORY WHEN IT’S PLAYING.
So, the problem is, if I called DoStuff(), my MovieClip is not deleted after the function. There is no reference at all, there’s nothing more then that stupid function but still, my memory keep growing because the movieClip is played.
If I stop all the children of the movieClip, the memory stops to grow, but still, I’m guessing that the movieclip is still alive, and I want him dead cause i’m evil.
Any suggestions ? Remember, there is no reference to it. Attached is an exemple of the bug.
Thanks !
Lachhh