Priority

HomeForumsAssetLoaderI Need Help!Priority

Tagged: 

This topic has 2 voices, contains 3 replies, and was last updated by  Matan Uberstein 300 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
July 22, 2011 at 6:34 pm #730 Quote

Efflam Daniel
<p>I try to load thumbnails one after the others : image 2 loading start when image 1 loading is complete.<br />
As I understand, priority is determined according to when asset is added.<br />
So i just do :<br />

Code:
<br />
var n:int = 0<br />
for each(var project:ProjectVO in projects)<br />
{<br />
_previewsLoader.addLazy("preview_" + n, project.preview);<br />
n++;</p>
<p>}<br />

</p>
<p>but with this code image 2 can be loaded before image 1. As i miss something ?<br />
Thank you.
</p>

July 23, 2011 at 7:02 am #833

Matan Uberstein

Hi,

The default number of connections AssetLoader opens is 3, thus when you call 1 – The first 3 children are started, this improves overall loading speed, but it means that the smaller image will be finished loading first.

So when the order of 1 is important, set the 1 to 1, then the images will sequentially load in the correct order.

Thanks for posting, let me know if it worked! :)

July 23, 2011 at 11:23 am #834

Efflam Daniel

Hi Matan,
Yes it works.
AssetLoader seams to be very powerfull !
Thank you

July 23, 2011 at 12:03 pm #835

Matan Uberstein

Great Thanks! :)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.