---
title: "[心得] 把纯文本嵌入as3类中 "
author: "AS3"
date: "2011-06-15T13:44:09Z"
tags: []
categories: ["编程语言"]
slug: "as3"
draft: false
lastmod: "2011-06-15T13:44:09Z"
id: 1090310
url: "https://as3.iteye.com/blog/1090310"
---

必须知道文本的编码类型, 否则中文会读出乱码


private var CLS_txt:Class

var txt:ByteArray = new CLS_txt
trace(txt.readMultiByte(txt.length,'utf-8'))