# New movieclip code

**URL:** <https://forum.kirupa.com/t/new-movieclip-code/283323>\
**Category:** Uncategorized\
**Created:** [March 4, 2009, 10:24pm UTC](https://forum.kirupa.com/t/new-movieclip-code/283323 "2009-03-04T22:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)\
**Post date:** [March 4, 2009, 10:24pm UTC](https://forum.kirupa.com/t/new-movieclip-code/283323/1 "2009-03-04T22:24:50Z")

</div>

Hi i am trying to create a new movieclip instance of Letter1 onto the stage,  
at the moment if i put

```auto
mc = new Letter1();

```

it does this, but i want to increase the number so i created a number var called letterDrop, as you can see below i tried to create a new mc using this but it doesnt seem to work, when i trace it i get Letter1 but when i try create it i get the error Letter1  
TypeError: Error #1007: Instantiation attempted on a non-constructor.  
at flashgame\_fla::MainTimeline/gameEngine()

any help appreciated

```auto
   if (randomNum==1) { //creates a new movieclip on the right column
            trace("Letter"+letterDrop); // returns Letter1
            mc = new ("Letter"+(letterDrop))();
            mc.name = "letter"+clip;
            this.addChild(mc);
            mc.x=728;
            mc.y=50;

```
