ActionScript 3中,读出在编译时文件中的文本? [英] Actionscript 3, read file text at compile time?
本文介绍了ActionScript 3中,读出在编译时文件中的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一些方法,使闪光灯放在一个串的一个文本文件的内容,或至少将其放入瑞士法郎,因此用户不需要下载?
There is some way to make the flash put the content of one text file in a string, or at least put it in the .swf, so the user don't need to download it?
推荐答案
解决方法:
[Embed(source = "ExampleText.txt", mimeType = "application/octet-stream")]
protected var pscene:Class;
var tmp:ByteArray = new pscene();
result = tmp.readMultiByte(tmp.bytesAvailable, tmp.endian);
我花了一段时间来了解如何从字节数组读取数据。
It took me a while to understand how to read the data from the Byte Array.
这篇关于ActionScript 3中,读出在编译时文件中的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文