match for the property key.
@param inArray: Array to search for an element with a key that matches match.
@param key: Name of the property to match.
@param match: Value to match against.
@return Returns matched Object; otherwise null.
*/
public function getItemByKey(inArray:Array, key:String, match:*):*
{
for each (var item:* in inArray)
if (item[key] == match)
return item;
return null;
}
}