# Dynamic Class Names?

**URL:** <https://forum.kirupa.com/t/dynamic-class-names/251905>\
**Category:** flash\
**Created:** [February 13, 2008, 8:59pm UTC](https://forum.kirupa.com/t/dynamic-class-names/251905 "2008-02-13T20:59:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xohol](https://avatars.discourse-cdn.com/v4/letter/x/59ef9b/32.png) [@xohol](https://forum.kirupa.com/u/xohol)\
**Post date:** [February 13, 2008, 8:59pm UTC](https://forum.kirupa.com/t/dynamic-class-names/251905/1 "2008-02-13T20:59:54Z")

</div>

Hello, i have a bunch of movie clips in my library, with the linkage turned on.

i would like to add them to my stage, but using a variable to access them.

the clips/linkage are names like ‘mc1’ ‘mc2’ ‘mc3’ etc

so how would i do something like this?

```auto
var clipVar:String = "mc1"

var newMC:[clipVar] = new [clipVar]()

```

thanks for any help!
