Freeing Memory

Date:    Wed, 28 Jun 1995 08:01:13 +0930
From:    Matt Craig <mnmac@FLINDERS.EDU.AU>
Subject: Re: Memory problems
I have done something along those lines using the StageToCast XObject. The problem is that all those nice new cast members (I made a few) are all sitting in RAM, therefore you need to save them to disk to free up some RAM. I did this by arbitrarily saving the movie when less than 30k of RAM is free...
if the freeBytes < 30 * 1024 then
  saveMovie
  unload
end if