使用 URLLoader 加载 .csv 文件时 Flash 播放器中断
大家好...
我用 AS3 制作了一个小 flash,用于查看我编写的某个程序生成的数据...数据位于 .csv 文件中,并使用 URLLoader< 加载到内存中/代码> 对象。
Flash 可以很好地加载 .csv 文件,其大小几乎可以达到 50 MB...但是当我尝试加载 160 MB 的文件时,播放器就停止工作...我运行了最新的 Flash 播放器版本,在浏览器...
我听说 Flash 对它可以存储的内存量有限制...但是在 另一个问题,他们说还没有。
可能是什么原因导致崩溃? - 我不认为这是代码,因为它对于小文件运行顺利......
提前谢谢您!
Greetings everyone...
I've made a little flash, with AS3, to view the data generated by some program I wrote... The data is in a .csv file and are loaded to the memory with a URLLoader
object.
The flash loads well .csv files which can come to almost 50 MB in size... But when I try to load a file with 160 MB, the player just stop working... I run the last flash player version, outside of the browser...
I've heard that the Flash has limitations on the amount of memory it can store... But in another question, they say it has not.
What may be causing the crash? - I don't think it is the code, since it runs smooth for small files...
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我快速进行了一些谷歌搜索,看起来 URLLoader 将下载存储在内存中,因此可能存在一些限制。另一个 Stack Overflow 答案 建议将 URLStream 与 FileStream 一起使用。根据我在其他平台上的经验,我认为这将是处理大文件的最合适的方法。您是从 http:// 还是 file:// url 加载?
I did some quick googling and it looks like URLLoader stores the download in memory so there could be some limitations. Another Stack Overflow answer recommends using URLStream along with FileStream. I'd think this would be the most appropriate way to deal with large files based on my experience on other platforms. Are you loading from an http:// or a file:// url?
现在使用 flash 时,出现错误:
在菜单
File
> 中发布设置...
,我们可以在Flash
选项卡上将超时时间调长。我还发现了类似 actionscript 中的异步处理之类的实现...这是一个非常好的实现有趣的方法,我将尝试以这种方式实现我的加载方法...
谢谢大家的帮助!
Working with flash now, it came to me the error:
In the menu
File
>Publish Settings...
, we can make the timeout period longer on theFlash
tab.I also found an implementation of something like asynchronous processing in actionscript... It's a very interesting approach and I'll try to implement my loading method that way...
Thank you all for your help!