# Put a mc into a variable

**URL:** <https://forum.kirupa.com/t/put-a-mc-into-a-variable/92961>\
**Category:** Uncategorized\
**Created:** [October 23, 2003, 7:25pm UTC](https://forum.kirupa.com/t/put-a-mc-into-a-variable/92961 "2003-10-23T19:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tziviak](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@tziviak](https://forum.kirupa.com/u/tziviak)\
**Post date:** [October 23, 2003, 7:25pm UTC](https://forum.kirupa.com/t/put-a-mc-into-a-variable/92961/1 "2003-10-23T19:25:33Z")

</div>

I used the duplicate movie clip to duplicate a m.c-but later on I want to refer to it in a variable-so how can I put the value of the copied m.c into the variable?  
here’s my code:

duplicateMovieClip(“Tline”,“TLine”+number,2);  
avail=“TLine”+number;  
number++;

when I trace avail now I get Tline5 (for ex.)-but it doesn’t reflect the real line that got duplicated  
thank you
