`
hereson
  • 浏览: 1428829 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

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

阅读更多
Copy code
trace("当前安装的系统的IME : "+System.ime);

当前安装的系统的IME D s5 .KZ
注册 ime组件 事件 ^XB QD u
在该实例上调用 addEventListener() lXDu6

Copy code
trace("flash player使用的当前的内存总字节数 : "+System.totalMemory+" B"); qj ?YP m<
2 ^D gK
B ( h3GR flash player使用的当前的内存总字节数
4 a=}/
Copy code
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

 

分享到:
评论

相关推荐

    Flash as2.0代码大全与Flash制作技巧

    System.useCodepage = true;//中文 音乐加入 mySound = new Sound(); mySound.attachSound("1"); mySound.start(); 关闭指定音乐 mySound.stop("1"); 外部调用音乐 mySound=new Sound(); mySound.loadSound(...

    flash action script 经典字典教程大全,学flash必备

    构造函数 Array 类、Boolean 类、Camera 类、Color 类、ContextMenu 类、ContextMenuItem 类、Date 类、Error 类、LoadVars 类、LocalConnection 类、Microphone 类、NetConnection 类、NetStream 类、Number 类、...

    比较实用的flash代码

    System.useCodepage = true;//中文 音乐加入 mySound = new Sound(); mySound.attachSound("1"); mySound.start(); 关闭指定音乐 mySound.stop("1"); 外部调用音乐 mySound=new Sound(); mySound.loadSound("music....

    PHP 生成的XML以FLASH获取为乱码终极解决

    确信XML绝对没有问题的情况: 首先,flash读取xml出现乱码涉及到System.useCodepage这个静态属性属性 官方描述:“A Boolean value that tells Flash Player which code page to use to interpret external text ...

    Flash+XML写的个类似韩国菜单的效果

    System.useCodepage = true; Stage.scaleMode = "noScale"; Stage.showMenu = false; Stage.align = "T"; var mxml:XML = new XML(); mxml.ignoreWhite = true; mxml.load("MenuList.xml"); var pageID:Number = 0; ...

    AS3.0歌词同步频谱原码

    System.useCodePage = true; Security.allowDomain("*"); sound = new Sound ; sound.load(new URLRequest("醉酒歌.mp3")); schannel = sound.play(); /////////////////////////////////...

Global site tag (gtag.js) - Google Analytics