# DuplicateMovieClip?

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip/251722>\
**Category:** flash\
**Created:** [February 12, 2008, 1:08am UTC](https://forum.kirupa.com/t/duplicatemovieclip/251722 "2008-02-12T01:08:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrbi](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hrbi](https://forum.kirupa.com/u/hrbi)\
**Post date:** [February 12, 2008, 1:08am UTC](https://forum.kirupa.com/t/duplicatemovieclip/251722/1 "2008-02-12T01:08:09Z")

</div>

Hi guys…

I need help on this one… I have created a emptymovieclip which contains 1 shape and then i have a duplicateMoviclip, and it´s posistion with {\_x:Number,\_y:Number}

my code:

```auto
 
this.createEmptyMovieClip("shape", this.getNextHighestDepth());
 shape.beginFill(0xFF0000);
 shape.lineStyle(2,0,100)
 shape.moveTo(100,50)
 shape.lineTo(200,50)
 shape.moveTo(200,50)
 shape.lineTo(150,150);
 shape.lineTo(100,50);
 shape.endFill();
 shape._x=100;
 shape._y=70;
 
 
    shape.duplicateMovieClip("shapeCOPY", this.getNextHighestDepth(), {_x:50, _y:50});

```

So i have two questions:

i have a button, and want to trigger the event for appering of the clip. something like this:

```auto
 
 
knap_btn.onRelease= function(){
 
this.createEmptyMovieClip("shape", this.getNextHighestDepth());
 shape.beginFill(0xFF0000);
 shape.lineStyle(2,0,100)
 shape.moveTo(100,50)
 shape.lineTo(200,50)
 shape.moveTo(200,50)
 shape.lineTo(150,150);
 shape.lineTo(100,50);
 shape.endFill();
 shape._x=100;
 shape._y=70;
 
 
    shape.duplicateMovieClip("shapeCOPY", this.getNextHighestDepth(), {_x:50, _y:50});
}

```

Nothing happends…

second question:

How do i duplicate multipli MC and place the either randomly or with parameters.

Please advice.

Regards Hrbi
