# Targetting ALL dynamic MC's

**URL:** <https://forum.kirupa.com/t/targetting-all-dynamic-mcs/100977>\
**Category:** Uncategorized\
**Created:** [February 4, 2004, 1:03pm UTC](https://forum.kirupa.com/t/targetting-all-dynamic-mcs/100977 "2004-02-04T13:03:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [February 4, 2004, 1:03pm UTC](https://forum.kirupa.com/t/targetting-all-dynamic-mcs/100977/1 "2004-02-04T13:03:51Z")

</div>

Not sure if the subject title really describes what i want, but its the best i could think of. :hangover: Anyways, the problem is that I have a code similar to this (its been shortened so the problem is easier to understand):

[AS]  
for (index=0; index\<12; index++) {  
frameHolder = this.createEmptyMovieClip(“frameHolder”+i, i);  
i++  
}  
frameHolder.i = i;  
frameHolder.onRelease = function() {  
openPopUp(i);  
};  
[/AS]

So basically what i want is to have the frameHolder function target ALL the dynamically created MC’s - frameHolder1, frameHolder2…frameHolder12

But when you trace the function, frameHolder only equals “frameHolder12”, so therefore the function only works for the 12th MC. I hope you’re not confused, but thats the best i can explain this. Thanks :beam:
