actionscript 3 - flash as3 movieClip loader doesn't load in numerical sequence -


i loading array of movie clips , adding them stage flash as3, problem movie clips added stage finish loading, , not in order of there position in array, order on screen appears messed up. how ensure added stage in same order references exist in url? here code:

var currentloaded:int = 0;  function loadthumbs(){     (var in project_array){         var thumbloader:loader = new loader();         thumbloader.load(new urlrequest(project_array[i].project_thumb));         thumbloader.contentloaderinfo.addeventlistener(event.complete, thumbloaded);     } }  function thumbloaded(e:event):void {     project_array[currentloaded].projectthumb.thumbholder.addchild(e.target.content);     admin.slideholder.addchild(project_array[currentloaded].projectthumb);     currentloaded++; } 

well typing same solution... load in specific order, have make recursive. may try loadermax library greensock. rock solid, fast , lightweight. besides easy use , can set ammount of parallel loading treads. can find here


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -