Dynamically creating new instances of classes?

I was just wondering is it was possible to do something like this (it works well) in an easier way:

function getVakNumberClip(index:int):Object{
    switch (index){
        case 1: return new _1();
        case 2: return new _2();
        case 3: return new _3();
        case 4: return new _4();
        case 5: return new _5();
        case 6: return new _6();
        case 7: return new _7();
        case 8: return new _8();
        case 9: return new _9();
        default: return new _0();
    }
}

I have 10 objects in my library, “_0” to “9", containing vector-stuff representing the numbers, and would like to call them seperately, depending on a variable. In AS 2.0 it was pretty easy: “attachMovie(””+variable, …", but I don’t see a way to do that in AS 3.0, things like:

var test:["_"+variable] = new ["_"+variable]();

don’t seem to work…

you can use getDefinitionByName
http://livedocs.adobe.com/flex/3/langref/flash/utils/package.html#getDefinitionByName()

Works like a charm, thanks

function getVakNumberClip(index:int):Object{
    var ClassReference:Class = getDefinitionByName("_"+index) as Class;
    return new ClassReference();
}