# Dynamic movieclip naming

**URL:** <https://forum.kirupa.com/t/dynamic-movieclip-naming/204449>\
**Category:** Uncategorized\
**Created:** [October 19, 2006, 9:00pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-naming/204449 "2006-10-19T21:00:54Z")\
**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:** [October 19, 2006, 9:00pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-naming/204449/1 "2006-10-19T21:00:54Z")

</div>

i’ve got 48 small movieclips named “1clip”, “2clip”, etc. all the way up to “48clip.”

I want to do something with them all and use a loop to affect them all the same way.

i tried this:

```auto
stop();
for(i=0; i<49 ; i++){
	_root.lClip = "clip"+i;
	trace(lClip);
	
	lClip.imageHolder.loadMovie("/images/one.jpg");
}
	

```

but that doesn’t seem to work. are variables and instance names interchangeable? my lClip var traces out of course, but the lClip.imagHolder.loadMovie never happens (clip inside the clip).

any idears?
