Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Chapter 14 CHAPTER 14 Garbage Collection 15 Every time a program creates an object, ActionScript stores it in system memory (for example, in RAM). As a program creates hundreds, thousands, or even millions of objects, it slowly occupies more and more memory. To prevent system memory from being fully depleted, ActionScript automatically removes objects from memory when they are no longer needed by the program. The automatic removal of objects from memory is known as garbage collection. Eligibility for Garbage Collection