Tracking memory usage

Lessons learned:

  1. Graphics on the timeline are much heavier SWF resources than SWF files with externalized resources.
  2. Always implement a destroy method for custom classes, to call when the object needs to be removed and made available for garbage collection.
  3. Stage event listeners are bad.
  4. Track your memory usage before deploying a project and shipping it to the customer’s public event.