现在的位置: 首页 > 综合 > 正文

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

2013年10月01日 ⁄ 综合 ⁄ 共 568字 ⁄ 字号 评论关闭
 
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时,Flash
Player 运行其播放器的操作系统所带的传统的代码的方式进行编译,默认情况下useCodePage 为false

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

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

抱歉!评论已关闭.