Dynamic Variable Name Question (quick and painless)

I’ve had troubles with dynamic variable names in AS3. Though i’ve figured most of them out, this instance still gives me problems:


for each(var quest in questObject)
{
     var classRef:Class = getDefinintionByName('list_item') as Class;
     var questItem:MovieClip = new classRef();
     ui.addChild(questItem);
}

How would I syntactically solve the dynamic variable problem using the above example?