Well, in Assets.images it calls the .map() function on your array of images. The map function has this:
for (var i = 0, l = this.length; i < l; i++) results[i] = fn.call (bind, this[i], i, this); As I understand it, a 'for' loop goes in order--but I've never written a book on it. I've never seen it behave differently and I've got a photo viewer that loads up 300+ images and it always goes in order. On May 25, 6: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!
