# Duplicate movie clip question

**URL:** https://forum.kirupa.com/t/duplicate-movie-clip-question/225203
**Category:** Uncategorized
**Created:** [May 9, 2007, 5:17pm UTC](https://forum.kirupa.com/t/duplicate-movie-clip-question/225203 "2007-05-09T17:17:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)
#### Post date: [May 9, 2007, 5:17pm UTC](https://forum.kirupa.com/t/duplicate-movie-clip-question/225203/1 "2007-05-09T17:17:57Z")

</div>

i’m creating a drag and drop application where users can construct a finished product from smaller subproducts. I’ve got all the drag and drop functionality nailed down. I use duplicateMovieClip to create a duplicate of a separate movieclip when you click on a button on the stage. the new clips are simply children of the \_root.

I’d like to have them be children of a movieclip instead as i need to have several states in my movie and would like to be able to come back to this drag/drop state and have the clips/construction still in place.

here’s my basic code that uses duplicateMovieClip:

```auto
fourSixButton.cnt=4000;
fourSixButton.onPress=function(){
	fourSixClip.duplicateMovieClip("fourSix"+this.cnt, this.cnt);
	newClip=_root["fourSix"+this.cnt];
	newClip.instanceName=_root["fourSix"+this.cnt];
	newClip._x=this._x+19.5;
	newClip._y=this._y+37;
	newClip.startDrag(false, xBoundsLeft, yBoundsTop, xBoundsRight, yBoundsBot);
	newClip.gotoAndStop("enabled");
	newClip.enable=true;
	newClip.price=this.price;
	trace("PRICE: "+this.price);
	_global.spinClip=newClip;
	trace("newClip: "+newClip);
	this.cnt++;
	
} 

```

if anyone can advise on how to target a movieclip instead of \_root, that would be great!
