# onClipEvent (enterFrame) : On multiple MC's

**URL:** <https://forum.kirupa.com/t/onclipevent-enterframe-on-multiple-mcs/171093>\
**Category:** flash\
**Created:** [December 1, 2005, 8:14pm UTC](https://forum.kirupa.com/t/onclipevent-enterframe-on-multiple-mcs/171093 "2005-12-01T20:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mecha](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mecha](https://forum.kirupa.com/u/mecha)\
**Post date:** [December 1, 2005, 8:14pm UTC](https://forum.kirupa.com/t/onclipevent-enterframe-on-multiple-mcs/171093/1 "2005-12-01T20:14:53Z")

</div>

Hey All,

I have a site with 4 buttons , which all need to fade the same movie clip (contentholder) if rolled over with the mouse.

I can get any one button to nicely fade the movie clip in and out, but when I copy the following code to another button, nothing works.

What am I doing wrong?

```auto
onClipEvent (enterFrame) {
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		_root.contentholder._alpha += (10-_root.contentholder._alpha)/5;
		} else {
		_root.contentholder._alpha += (100-_root.contentholder._alpha)/15;
		}
	}

```

Any help at all would be greatly appreciated.

Many thanks,  
mecha
