Flash/AS3 - is there a limit to the number of simultaneous URLLoader.load() requests?

后端 未结 3 372
无人及你
无人及你 2021-01-21 05:37

All,

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 t

3条回答
  •  一向
    一向 (楼主)
    2021-01-21 05:42

    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

    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.

    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.

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

提交回复
热议问题