Pues esta bastante guapo si, pal classpath va.
Aqui teneis tambien otra utilidad, bastante práctica, para evitar
otros cuantos "for" mas :
http://www.rubenswieringa.com/code/as3/flex/ArrayTool/
Os pego un poco de la doc de la clase :
This method searches an Array for an Object with a given property that
has a certain value. Can also search for nested Objects.
var array:Array = [ {foo: {bar: 'value1'}}, {foo: {bar: 'value2'}},
{foo: {bar: 'value3'}} ];
var propChain:Array = ['foo', 'bar'];
var value:String = 'value3';
ArrayTool.getValueMatchIndex (array, propChain, value);
outputs 2
@param array Array to search.
@param property Property or property-chain to try every item in
the Array for. This parameter can either be a String (normal
property), Array (property-chain), or numeric value (array index).
@param value Value to be found.
@return Index of the item where the value was found on the end of
the property chain.
En resumen, busca el index del elemento en base a un valor y
propiedad, aun en elementos anidados. Genial para los result de AMF y
cosas por el estilo... y adios a los "for" .... xD
Salu2!