How do you add a specific image from the library to the stage?

Lets say you have 5 images in the library - how can you add a specific one to the stage based on a variable?

Like, if I wanted to add the class “letterA”, how could I do it, without a saying:

if($img == ‘letterA’){
addChild(new LetterA());
}