摘要:
采用flash builder新建一个项目。
// 嵌入测试的swf资源
[Embed (source = "../testswf/test.swf", mimeType = "application/octet-stream")]
private var content:Class;
// 初始化字节对象
var bytes:ByteArray = new content() as ByteArray;
// 设置为主机字节序
bytes.endian = Endian.LITTLE_ENDIAN; 阅读全文
posted @ 2011-05-13 00:35 Hicome 阅读(1248) 评论(1) 推荐(0) 编辑