# Controlling dynamic created MC's

**URL:** <https://forum.kirupa.com/t/controlling-dynamic-created-mcs/198662>\
**Category:** flash\
**Created:** [August 27, 2006, 11:33am UTC](https://forum.kirupa.com/t/controlling-dynamic-created-mcs/198662 "2006-08-27T11:33:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitaldivide](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@digitaldivide](https://forum.kirupa.com/u/digitaldivide)\
**Post date:** [August 27, 2006, 11:33am UTC](https://forum.kirupa.com/t/controlling-dynamic-created-mcs/198662/1 "2006-08-27T11:33:36Z")

</div>

Hai Guys (and Girls),

I’m helping a friend with a menu and I just got a little problem here. The menu items are created dynamic out of empty movieclips and have the name movie + x. Now I’m trying to create a method that resets al the other movieclips to their original size and colour when one is pressed. The first problem is to adress the other ones. Even if I try to put the following in the script: movie[x].\_alpha = 0; nothing happens… Why??? Check a part of the script below, if you would like. I’m going crazy on this one!! :h: Please help me out here!

for (x=1; x\<=11; x++) {  
eval(“movie” + x).onRelease = function() {  
var my\_strNr:String = this.\_name  
beginStr = my\_strNr.length-1; endStr = my\_strNr.length  
var strNr = my\_strNr.substr(beginStr,endStr);  
this.\_xscale = 130;  
this.\_yscale = 130;  
this.\_y = this.\_y-14;  
this.button2.htmlText = “\<p class=‘button\_large\_red’\>”+_root.getString("exp\_years_"+strNr);  
this.enabled = false;  
};  
}
