使用 URLLoader 加载 .csv 文件时 Flash 播放器中断

发布于 2024-10-26 08:47:06 字数 436 浏览 5 评论 0原文

大家好...

我用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

姜生凉生 2024-11-02 08:47:06

我快速进行了一些谷歌搜索,看起来 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?

孤独岁月 2024-11-02 08:47:06

现在使用 flash 时,出现错误:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.

在菜单 File > 中发布设置...,我们可以在Flash选项卡上将超时时间调长。

我还发现了类似 actionscript 中的异步处理之类的实现...这是一个非常好的实现有趣的方法,我将尝试以这种方式实现我的加载方法...

谢谢大家的帮助!

Working with flash now, it came to me the error:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.

In the menu File > Publish Settings..., we can make the timeout period longer on the Flash 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文