oh this should be sooo easy but i just cant work it out. Check the code:
var myCategory1 = 3;
var myCategory2 = 6;
var myCategory3 = 10;
var myArray = Array(myCategory1, myCategory2, myCategory3);
myArray.sortOn(18);
trace(myArray[0]);
So as we (all) know Flash will trace the number 10 (highest number in the array), but i need to know what variable 10 came from? eg. did 10 come from myCategory1, myCategory2, myCategory3?
Tom