闪存/ AS3 - 是有限制的同时URLLoader.load()的请求的数目? [英] Flash/AS3 - is there a limit to the number of simultaneous URLLoader.load() requests?

查看:204
本文介绍了闪存/ AS3 - 是有限制的同时URLLoader.load()的请求的数目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

我工作在一个闪光/ AS3项目,使众多URLLoader.load()的请求。

I'm working on an Flash/AS3 project that makes numerous URLLoader.load() requests.

我应该排队它们,以便有只有在任何时候一个开放的要求吗?或者说,它是一个很好的做法,允许多个打开请求?

Should I queue them so that there's only a single open request at any time? Or, is it a good practice to allow multiple open requests?

时有限制开放的请求数?

Is there a limit to the number of open requests?

(我假设我可以管理用户界面中的影响)。

(I'm assuming I can manage the implications in the UI).

我已经与多达5个同时请求运行测试在本地,它工作得很好。但我需要确保应用程序将在外地工作,为用户提供旧电脑,旧的浏览器,浏览器与多个打开的标签等。

I've run tests locally with up to 5 simultaneous requests, and it works just fine. But I need to make sure the application will work in the field, for users with older PCs, older browsers, browsers with multiple open tabs, etc.

在预先感谢您的任何建议和见解!

Many thanks in advance for any advice and insight!

推荐答案

我很久以前就遇到了这个问题,当我试图加载大量图像。他们都是当地的,所以我只是排队它们的装载程序。队列小时的调试为什么图像为空:•

I ran into this problem ages ago when I was trying to load a ton of images. They were all local, so I just queued them up with the Loader. Queue hours debugging why images were null :S

我不知道,如果限制的任何地方mentionned,但我发现(如果没有记错)约30在给我的问题。在那之后,我认为它会重新使用旧的连接:所以,如果你有100个负载()调用,只有最后的30个左右会被加载

I'm not sure if the limit is mentionned anywhere, but I found (if memory serves) around 30 was giving me problems. After that and I think it would reuse old connections: so if you have 100 load() calls, only the last 30 or so would be loaded.

通常我排队约10的时间,然后在剩​​下的加载,因为他们得到完成。有多个连接,没有真正的问题 - 虽然他们将开始占用CPU电源等

Normally I queue up about 10 at a time, then load in the rest as they get completed. There's no real problem with multiple connections - though they will start to take up CPU power etc.

如果您想忽略这一点,看看像BulkLoader: HTTP: //$c$c.google.com/p/bulk-loader/ 这是此创建

If you want to just ignore this, check out something like BulkLoader: http://code.google.com/p/bulk-loader/ which was created for this

这篇关于闪存/ AS3 - 是有限制的同时URLLoader.load()的请求的数目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆