title: Flash memory usage in browser?
body: <p>When I run my swf locally in the Flash Player application, its memory usage starts at around 50 Mb, and though it definitely fluctuates, it generally stays centered at around 50 Mb. </p>
  
  <p>Then I embed the same swf in an html page and run it in my browser (firefox). Now the memory usage starts at 20 Mb, but increases at a near constant rate until it is over 100 Mb and I need to stop it. The swf is essentially unusable in the browser because of this.</p>
  
  <p>What could be the cause of this huge difference in behavior? Where should I even begin when trying to make the swf functional in the browser?</p>
  
  <p><strong>EDIT:</strong> I have found what was causing the problem (sort of). A certain type of object, which gets spawned a lot during the game, doesn't respond to removeChild() correctly. As a result these types of objects were building up on the stage (but invisible) and causing the memory usage to skyrocket. This doesn't occur when I test it in CS4 or in the standalone flash player application, only in the browser. It seems like a Flash bug.</p>
  
  <p>Thank you to everyone who responded, you have indirectly caused me to find the weird problem!</p>