Originally Posted by moagrius
to clarify : flash does do its own garbage collecting, and an admirable job of it really - but only after all references to the object are removed - which 99% of the actionscript i've seen - on this board or anywhere else - doesn't do. this isn't a bug or a failing of the player - this is 'appropriate' behavior - but very misunderstood. the key is scope: keep everything local to a function call, and it'll expire the instant the function's done executing. use "var" every time you can, recycle your timeline variables, and make good use of the arguments array as it's passed local as a native behavior.