Flash RIA 技巧一则
[ 2007-12-13 23:40:12 | Author: 星辉一冷 ]
fl.getAppMemoryInfo()
可用性:Flash 8(仅限 Windows)。
用法:fl.getAppMemoryInfo(memType)
参数:memType 一个整数,它指定要查询的内存利用区域。若要查看可接受值的列表,请参见以下说明。
返回:一个整数,它表示在 Flash.exe 内存中指定区域内使用的字节数。
GetFreePlayerMemory & GetTotalPlayerMemory
可用性:Flash Lite 1.1
用法:fscommand2(GetFreePlayerMemory);
返回:返回当前可用于 Flash Lite 的堆内存量(以千字节为单位)。
System.totalMemory
可用性:AS3
用法:System.totalMemory
返回:占用内存
记得经常要拿他们"吹死"(trace) 一下~
Comment Feed: http://www.dreammx.com/xhyl/feed.asp?q=comment&id=416
Trackback URL: http://www.dreammx.com/xhyl/trackback.asp?id=416&key=xhyl
可用性:Flash 8(仅限 Windows)。
用法:fl.getAppMemoryInfo(memType)
参数:memType 一个整数,它指定要查询的内存利用区域。若要查看可接受值的列表,请参见以下说明。
返回:一个整数,它表示在 Flash.exe 内存中指定区域内使用的字节数。
GetFreePlayerMemory & GetTotalPlayerMemory
可用性:Flash Lite 1.1
用法:fscommand2(GetFreePlayerMemory);
返回:返回当前可用于 Flash Lite 的堆内存量(以千字节为单位)。
System.totalMemory
可用性:AS3
用法:System.totalMemory
返回:占用内存
记得经常要拿他们"吹死"(trace) 一下~
Comment Feed: http://www.dreammx.com/xhyl/feed.asp?q=comment&id=416
Trackback URL: http://www.dreammx.com/xhyl/trackback.asp?id=416&key=xhyl