Iteration through array of complex data object on different properties
I am not sure my title is correct.![]()
Is there any 3rd-party library on AS3.0( like STL in C++), can do this:
I define my class and use its objects as associative array, for example:
class Company{
var public name;
var public logo;
var public address;
var public telnumber;
}
And use a kind of data structure class(say, List) to store a few Company-type objects. And then, I define my own comparing and searching function on that List class(namely, override the default one); within my functions I could specify on which attribute(name, or address, or telephone number) to perform searching, and how it would be performed.
Could someone help? Thanks in advance.