AS3 - 空气 - 从SWF路径文件为ByteArray [英] AS3 - AIR - From a swf path file to a ByteArray
问题描述
我编码AIR应用程序。
I am coding an AIR application.
我有直接的SWF文件的路径(因为它被保存在一个XML文件)。 不要哟知道是否有可能从这个文件中获得的ByteArray?
I've got directly a path of a swf file (because it was stored in a xml file). Do yo know if it is possible to get the ByteArray from this file ?
我知道的FileReference做的非常好,但是这个类需要一个select事件。但它不是我的情况,因为我已历经了我的道路。
I know that FileReference do that very well, but this class need a select event. But it isn't my case because I've allready got my path.
非常感谢您的回答!
推荐答案
在空气,你可以读/写,直接使用的 flash.filesystem.File将
和<一href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/FileStream.html"相对=nofollow> flash.filesystem.FileStream
。
In AIR, you can read/write files directly using flash.filesystem.File
and flash.filesystem.FileStream
.
见,例如,本文一>
这篇关于AS3 - 空气 - 从SWF路径文件为ByteArray的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!