# Adding a mc from the library based on the users choice

**URL:** <https://forum.kirupa.com/t/adding-a-mc-from-the-library-based-on-the-users-choice/254926>\
**Category:** Uncategorized\
**Created:** [March 17, 2008, 12:55pm UTC](https://forum.kirupa.com/t/adding-a-mc-from-the-library-based-on-the-users-choice/254926 "2008-03-17T12:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Post date:** [March 17, 2008, 12:55pm UTC](https://forum.kirupa.com/t/adding-a-mc-from-the-library-based-on-the-users-choice/254926/1 "2008-03-17T12:55:31Z")

</div>

Is there any way to do this? I only want one MC added with the same instance name based on the users choice.

if(event.target.name == “faceType1\_mc”) {  
var myFace\_mc:faceType1 = new faceType1();  
}  
else if(event.target.name == “faceType2\_mc”) {  
var myFace\_mc:faceType2 = new faceType2();  
}
