Saturday, July 19, 2008

Debugging Tip #2

Another snippet that is useful for debugging is the flash.system.System.totalMemory.

trace(Number(System.totalMemory / (1 << 10));

This will display the total memory in KB.

To display it in MB,

trace(Number(System.totalMemory / (1 << 20)).toFixed(2));

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home