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

來源:互聯網
上載者:User
 
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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.