match for the property key.
@param inArray: Array to search for object with key that matches match.
@param key: Name of the property to match.
@param match: Value to match against.
@return Returns all the matched elements.
*/
public function getItemsByKey(inArray:Array, key:String, match:*):Array
{
var t:Array = new Array();
for each (var item:* in inArray)
if (item[key] == match)
t.push(item);
return t;
}
}