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

**URL:** <https://forum.kirupa.com/t/how-do-you-add-a-specific-image-from-the-library-to-the-stage/329403>\
**Category:** flash\
**Created:** [August 23, 2012, 5:15am UTC](https://forum.kirupa.com/t/how-do-you-add-a-specific-image-from-the-library-to-the-stage/329403 "2012-08-23T05:15:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [August 23, 2012, 5:15am UTC](https://forum.kirupa.com/t/how-do-you-add-a-specific-image-from-the-library-to-the-stage/329403/1 "2012-08-23T05:15:57Z")

</div>

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());  
}
