# duplicateMovieClip problems

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-problems/194763>\
**Category:** Uncategorized\
**Created:** [July 26, 2006, 3:52am UTC](https://forum.kirupa.com/t/duplicatemovieclip-problems/194763 "2006-07-26T03:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tattered](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tattered](https://forum.kirupa.com/u/Tattered)\
**Post date:** [July 26, 2006, 3:52am UTC](https://forum.kirupa.com/t/duplicatemovieclip-problems/194763/1 "2006-07-26T03:52:47Z")

</div>

Ok I am dup a movie clip a few times with a if statment, using a var (i). I have this part working fine, but my problem now that I seem to encounter is that I am trying to access the movieClips using another var (j). Here is my code so that you can understand what I am doing.

```auto

_global.i = 99;
_global.j = 80;
//
addMovie = function () {
	if (_global.i>=80) {
		Chris_mc.duplicateMovieClip("Chris"+_global.i+"_mc", i);
		with (eval("Chris"+_global.i+"_mc")) {
			do something;
			trace(eval("Chris"+_global.i+"_mc"));
		}
		_global.i--;
		
		trace("i = "+_global.i);
		
	} else if(_global.i<=80) {
		trace(_level10.eval("Chris"+_global.j+"_mc"));
		_global.j++;
	}
};

```

What I want done I want it to make those movieClips, but when its done I want it to remove them. My problem is this “trace(\_level10.eval(“Chris”+\_global.j+”\_mc"));" it comes up “undefined” and I dont know why…
