问题描述
请问如何使用flash.filesystem.FileStream? FileStream.as文件在哪里
仅在Adobe AIR中可用。它在浏览器的Flash Player中不可用。此外,没有FileStream.as可用于读取源代码,因为它被编译到运行时,并可能用像C ++这样的低级语言编写。
如果你想要在浏览器中打开Flash Player中的文件,您应该使用并调用 browse()
方法来显示一个文件对话框。一旦用户选择了一个文件,你会收到 Event.SELECT
,你可以调用 load()
方法获取数据的ByteArray。
如果您的目标是Adobe AIR,那么文档应该会提供给您所需的所有信息。
Will
How to use flash.filesystem.FileStream ?
FileStream.as file Where?
The class flash.filesystem.FileStream is only available in Adobe AIR. It is not available in Flash Player in the browser. Furthermore, there is no FileStream.as available to read the source code because it is compiled into the runtime and probably written in a lower-level language like C++.
If you want to open a file in Flash Player in the browser, you should use flash.net.FileReference and call the browse()
method to display a file dialog. Once the user selects a file, you'll receive Event.SELECT
and you can call the load()
method to get a ByteArray of data.
If you are targeting Adobe AIR, then the document Reading and writing files should provide you with all the information you need.
这篇关于如何使用flash.filesystem.FileStream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!