How to convert a string to an object identifier and then retrieve/get property values for that object? There is two ways to do this in ActionScript:
eval(targetAsString.IDName); or eval(_root.targetAsString.IDName);
_root[targetAsString].IDName; or _root[targetAsString]["IDName"];
Notice how I use a string to target the value of the property, by using array-access operator [] multiple times.
I would recommend to use the the array-access operator over the eval() function because it's faster and less processor intensive. It's also a more secure solution.