Array.getIndex
August 25th, 2003
This is a method extension of the Array ActionScript object for getting the index of a given string or value.
Array.prototype.getIndex = function (myValue){
for (var i=0; i < this.length; i++){
if (this[i] == myValue){
return i;
}
}
return 0;
}
Categories: Uncategorized
