Dynamic class selection ["classname"]

hi

Is there a way of selecting a class with a string like in this code?


...
var newMc:String = userSelection + counter.toString();
_parent.attachMovieClip(userSelection, newMc, newDepth);
_parent[newMc]._x = _root.stamp._x;
...
trackingArray[newDepth] = new [userSelection](arguments);
...

It is possible to select objects with [string] but why not with classes?
Of course i could make a switch statement but that would be tedious
and not very effective if the provided string already has the right information.