# Instance names -- loadMovie!

**URL:** <https://forum.kirupa.com/t/instance-names-loadmovie/8547>\
**Category:** Uncategorized\
**Created:** [November 23, 2002, 12:18pm UTC](https://forum.kirupa.com/t/instance-names-loadmovie/8547 "2002-11-23T12:18:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![papaleguas](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/papaleguas/32/64_2.png) [@papaleguas](https://forum.kirupa.com/u/papaleguas)\
**Post date:** [November 23, 2002, 12:18pm UTC](https://forum.kirupa.com/t/instance-names-loadmovie/8547/1 "2002-11-23T12:18:08Z")

</div>

Hi! The question is:

I have 20 instances names ( instance1, instance2…instance20) of a duplicated myMC that hosts another MC (secondMC) with a BUTTON inside.

So, secondMC and BUTTON are the same in all instances of myMC.  
Action in myMC makes BUTTON to load an image:  
loadMovie(“image1.jpg”, “target”)  
that is, the same action in the 20 instances.

I want the button to load 20 images according to the instances names of parent movie (myMC)!

It’s hard to explain but I hope you understand this.  
Is this possible! How do I code that?!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 4:15pm UTC](https://forum.kirupa.com/t/instance-names-loadmovie/8547/2 "2002-11-23T16:15:54Z")

</div>

for(j=1; j\<21; j++){  
if(…/:\_name==“photo”+j){  
\_root.visor.loadMovie(“photos/image”+j+".jpg", “visor”);  
}  
}
