The System class (flash.system.System) in ActionScript 3 has a new property called totalMemory (flash.system.System.totalMemory). This property provides the current memory usage of the Flash player in bytes. Examples:
var o:Object = new Object();
trace(System.totalMemory); // 4960256
trace(System.totalMemory); // 4960256
var o:MovieClip = new MovieClip();
trace(System.totalMemory); // 4964352
trace(System.totalMemory); // 4964352
This entry was posted on Tuesday, October 20th, 2009 at 12:12 pm and is filed under ActionScript, Flash, Tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
You might also like
| Flash Optimization – Freeing Memory Flash optimization is becoming increasing important & with alternative development tools that developers... | AS3 FPS(Frame Pre Seconds) and Memory Counter One of my favorite class I used to include when developing games for flash is my FPS and Meory Counter Package.... | Extract Swf file from Mochimedia Encrypted file – MochiDecrypter Maybe your website mochimedia and services that meet you and maybe many games by this code, have seen you play,... | Event Handing in AS3 Event handling is the process by which any sort of interactivity is created in ActionScript 3.0. This tutorial... |







