I am new to flash, sorry for any newbishness on my part.
Is there a way to track how much memory your debug is using? I am trying to make a game, and I have 2 ways of doing something.
One with an array of square objects doing hitTest, and the other with only 1 object and an array of cords doing a nested if{}.
I want to see what each of these are doing in terms of memory usage during runtime and which one would be better.
(added)
Specificly not just which one of these is better, but also as different things are applied, I want to test how each of these things responds and which one would slow down a computer less. And later on as things progress I want a way to test it.
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.
North America
Europe, Middle East and Africa
Asia Pacific