I need to store a lot of data coming in from a server into memory, so I have to write my memory-storage algorithms based on how much I can safely use without hanging up or crashing the browser.
Is there any safe size limit like 1MB or 100MB, that contents of global variables should not exceed?
You can check how much memory you are using with:
Use this to help keep locate memory leaks and to improve your garbage collection code.
In actionScript 2 they say you should both clear and delete dynamically created objects for quickest GC.