# Atch new movieclip to another clip on stage

**URL:** <https://forum.kirupa.com/t/atch-new-movieclip-to-another-clip-on-stage/175762>\
**Category:** Uncategorized\
**Created:** [January 17, 2006, 5:26pm UTC](https://forum.kirupa.com/t/atch-new-movieclip-to-another-clip-on-stage/175762 "2006-01-17T17:26:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhoward3](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@bhoward3](https://forum.kirupa.com/u/bhoward3)\
**Post date:** [January 17, 2006, 5:26pm UTC](https://forum.kirupa.com/t/atch-new-movieclip-to-another-clip-on-stage/175762/1 "2006-01-17T17:26:06Z")

</div>

not sure if this is the best way top achieve a result but i would like to  
do somthing like this

tester = this.createEmptyMovieClip(“logo\_mc”, 999);  
loadMovie("/images/thumbs" + temp[z].firstChild.nodeValue, tester);  
loadMovie(tester, “button”+y);

basically i am trying to attach a dynamically created movieclip with external image data and varaibales to a clip that is already on the stage

my code as it stands:  
for (z=0; z\<=temp.length; z++) {  
if (temp[z].nodeName == “image”) {  
tester = this.createEmptyMovieClip(“logo\_mc”, 999);  
tester.id = z  
loadMovie("/images/thumbs" + temp[z].firstChild.nodeValue, tester);  
//not sure how to assign the new clip to one on the stage  
// ie loadMovie(tester, “button”+z);  
}

thanks for any advice
