flash中的System类的使用(ime totalMemory useCodePage)

来源:互联网 发布:origin数据拟合非线性 编辑:程序博客网 时间:2024/05/16 12:06
 
trace("当前安装的系统的IME : "+System.ime);
当前安装的系统的IME D s5 .KZ
注册 ime组件 事件 ^XB QD u
在该实例上调用 addEventListener()
trace("flash player使用的当前的内存总字节数 : "+System.totalMemory+" B"); qj ?YP m<
2 ^D gK
B ( h3GR flash player使用的当前的内存总字节数
trace(System.useCodePage);

返 回的boolean值将告知 Flash Player 去编译外部txt文件,当其属性设为false时,Flash Player会以Unicode的编码格式去编译外部txt文件,(当你保存的时候必须将其存为Unicode的编码格式)当其设为true时,FlashPlayer 运行其播放器的操作系统所带的传统的代码的方式进行编译,默认情况下useCodePage 为false

当你通过使用 flash.display.Loader类的load() 或 flash.net.URLLoader 或flash.net.URLStream 或 XML 类加载的外部txt文本,文本必须存成Unicode,以便flash player可以将其以Unicode进行编码

一般来讲 英文操作系统使用 CP1252 日文操作系统使用 Shift-JIS