Mmmm, thanks, but I don't think the for loop necesarily makes that sure. The for loop cause the loading start to be progressive (but nearly simultaneous), but not the loading end. Images take different times loading, based on their size. What I really need is to be sure that the onProgress event fires from 0 to n, and not simply when a file finish loading (it will hardly happen progressively).
Maybe a really good thing, would be an option like 'loadInOrder': true, every new file starts loading after the preceding finish loading, false, the files start loading toghether (like maybe is now). I've for example done an actionscript class that behaves that way. Please forgive my bad english.. :) Bye! On 26 Mag, 20:53, rpflo <[email protected]> wrote: > Hmm ... not sure what you thought I was saying csuwldcat. > > I use Assets.images in -more to load up the images, which uses the map > () function in -core, which uses the 'for' loop I quoted here--so I'm > certainly not going to go tinker with the map function in -core. > > That is good information though. > > So it appears that Asset.images will always progress, progressively, > stratboy. > > On May 26, 12:44 pm, csuwldcat <[email protected]> wrote: > > > The for loop is an in-order loop, there are loops that return an > > inverse set of the data, for instance: the --while loop would be much > > faster on large datasets, but you need to flip the order after. > > > On May 25, 5:46 am, stratboy <[email protected]> wrote: > > > > Hi! > > > > suppose this code: > > > > this.images = new Asset.images([ > > > this.o.topLeft,//path > > > this.o.topRight,//path > > > this.o.bottomLeft,//path > > > this.o.bottomRight//path > > > ],{ > > > onProgress:function(counter,index){ > > > console.log(index); > > > } > > > }); > > > > Well, it seems to always trace out 0,1,2,3. BUT: can I be really sure > > > that it will ALWAYS do it? Will it always load the images exactly in > > > the order found on the passed array? > > > I need to know this, because if true, I can then write a method that > > > sets my elements on progress without the need of other checks. > > > > Anyone knows? Bye!
