Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.getAppMemoryInfo() | |||
Flash 8 (Windows only).
fl.getAppMemoryInfo(memType)
memType An integer that specifies the memory utilization area to be queried. For a list of acceptable values, see the following description.
An integer that represents the number of bytes being used in a specified area of Flash.exe memory.
Method (Windows only); returns an integer that represents the number of bytes being used in a specified area of Flash.exe memory. Use the following table to determine which value you want to pass as memType:
|
memType |
Resource data |
|---|---|
|
0 |
|
|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
The following example displays the current working memory consumption:
var memsize = fl.getAppMemoryInfo(2);
fl.trace("Flash current memory consumption is " + memsize + " bytes or " + memsize/1024 + " KB");
|
|
|
|