# Creating Dynamic MovieClips

**URL:** <https://forum.kirupa.com/t/creating-dynamic-movieclips/322675>\
**Category:** flash\
**Created:** [May 30, 2011, 1:05am UTC](https://forum.kirupa.com/t/creating-dynamic-movieclips/322675 "2011-05-30T01:05:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evolutionxbox](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@evolutionxbox](https://forum.kirupa.com/u/evolutionxbox)\
**Post date:** [May 30, 2011, 1:05am UTC](https://forum.kirupa.com/t/creating-dynamic-movieclips/322675/1 "2011-05-30T01:05:53Z")

</div>

After a click event I want to dynamically create 2 movieclips with the sequential number in their name, e.g. mc\_001 & mv\_001 so that I can ‘link’ them together later on.

[SIZE=“4”]How can I create a movieclip with a dynamic name?[/SIZE]

I am trying to use this at the moment:

```auto
var movieclip["name"+dynamicNumber]:MovieClip = new MovieClip();

```

I can’t use an array unless someone can tell me how to access it across multiple classes…
