# Multiple Movieclip Bug

**URL:** https://forum.kirupa.com/t/multiple-movieclip-bug/211706
**Category:** flash
**Created:** [January 4, 2007, 12:06pm UTC](https://forum.kirupa.com/t/multiple-movieclip-bug/211706 "2007-01-04T12:06:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jor133d](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jor133d/32/315_2.png) [@jor133d](https://forum.kirupa.com/u/jor133d)
#### Post date: [January 4, 2007, 12:06pm UTC](https://forum.kirupa.com/t/multiple-movieclip-bug/211706/1 "2007-01-04T12:06:16Z")

</div>

TheCanadian helped my figure out my code here yesterday and now I am having another problem.

I have a parent MC (legend) that usees a button action and child MC’s inside that has actions as well.

THE PROBLEM: I have multiple parent MC’s (not just legend…legend1,legend2,etc). How do to duplicate this code to work for each? I tried copying and pasting the code and changing legend to legend1 but, it does not work correctly then. When I rollover one MC, one or all will alpha fade up as well.

Do you know how I can get this code to work on multiple MC’s on the stage?:

```auto

#include "lmc_tween.as"

//legend
legend._alpha = 10;
legend.over_mc._visible = false;

legend.info_btn.onRollOver = function(){
legend.over_mc._visible = true;
}
legend.info_btn.onRollOut = function (){
legend.over_mc._visible = false;
}
legend.launch_btn.onRelease = function(){
getURL("http://legend.destreedesign.com");

}

var isOver:Boolean = false;
legend.onEnterFrame = function(){
if(this.hitTest(_root._xmouse, _root._ymouse) && isOver == false) {
isOver = true;
legend.alphaTo(100,1.5);
} else if(!this.hitTest(_root._xmouse, _root._ymouse) && isOver == true) {
isOver = false;
legend.alphaTo(10,1.5);
}

}

```
