I don't think you can do it in AS2. But you can use System.memory in AS3. So you can make an AS3 file that loads your games and checks memory usage. Not the easiest, but effective.
Is there any difference in the code between as2 and as3, beyond the functionality added by as3?
1 person found this helpful
Yes, AS3 is very different than AS2. If you don't have a very specific reason to learn or do AS2 I would suggest moving to AS3. However if you can't or won't redo your game in AS3 there is no problem loading an AS2 project into AS3 — especially for this purpose.
Here is a tutorial on how to load a file using AS3. http://www.ilike2flash.com/2009/11/load-external-swf-in-as3.html
And here is how to check the memory: http://blog.pixelbreaker.com/actionscript-3-0/as30-memory-monitoring (you will probably want to send the value to a textfield or something so that you won't have to rely on a lot of traces).
Thanks a lot. I'm completely new to flash so there isn't a reason why I can't switch over to as3. Most of my game right now is just declerations and whiles and ifs, so it shouldn't be to hard to convert it.
From the description the memory checker is just returning the entire value of the flash player, not the debug session. So would i be wrong in assuming you could publish a small movie where that was the only thing it did and left it running to monitor your memory?
If you are new to Flash and have no specific reason to learn AS2 then, by all means, you should just start with AS3!
Not really sure what you mean by "the debug session" but it is what it is. You can publish small isolated tests to see what is going on, but in the end all your stuff is going to play together, so it is good to also see if things are interfering with each other or what have you.