button3.onPress = function(){
myArray.sortOn(["color"]);
myInterval = setInterval(preloader, 10);
function preloader(){
var i:Number=0;
if (i<myArray.length){
play();
clearInterval(myInterval);
}
eval(myArray*.instance).slideTo(0,i*myArray*.instance._height,1,"easeOutBounce");
i++;
}
}
trying to get something like this to work… click on the button, it sorts the array, then waits a bit moving each item in the array.
i can sort and move the array fine, when i try to add setInterval, it borks… by which i mean, i don’t know what i’m doing at 5am.