# How to free the RAM

**URL:** <https://forum.kirupa.com/t/how-to-free-the-ram/219404>\
**Category:** flash\
**Created:** [March 16, 2007, 7:56am UTC](https://forum.kirupa.com/t/how-to-free-the-ram/219404 "2007-03-16T07:56:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![madslund](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@madslund](https://forum.kirupa.com/u/madslund)\
**Post date:** [March 16, 2007, 7:56am UTC](https://forum.kirupa.com/t/how-to-free-the-ram/219404/1 "2007-03-16T07:56:00Z")

</div>

Hi there

I’m new here. Long time listener, first time caller.  
Well, on to my problem:

I’m building a large animation, that consists of 1000 jpgs. I load these in 20 external swfs with 50 frames in each. I have a timeline where the user can scrub back and forth through the animation. I preload the clips first, and I have all the actionscript for the navigation down. So far so good…

BUT - it seems that the flash player uses up a little bit of RAM for every frame it displays, and I can’t get it to “release” the RAM again. I’ve tried unloadMovie (doesn’t work - it unloads the movie, but doesn’t free up the RAM). I’ve tried using removeMovieClip, and that works. The RAM is freed, but then I have to load the clips all over again (taking loadtime again, if even just a bit), if the user scrubs back to a clip that’s been removed.

Any advice?
