# Multiple hover captions

**URL:** <https://forum.kirupa.com/t/multiple-hover-captions/129545>\
**Category:** Uncategorized\
**Created:** [November 24, 2004, 10:36pm UTC](https://forum.kirupa.com/t/multiple-hover-captions/129545 "2004-11-24T22:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firefuze](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Firefuze](https://forum.kirupa.com/u/Firefuze)\
**Post date:** [November 24, 2004, 10:36pm UTC](https://forum.kirupa.com/t/multiple-hover-captions/129545/1 "2004-11-24T22:36:58Z")

</div>

I followed the hover caption tutorial here on kirupa, and it seems that i can’t have more than 1 mc act as a caption.

So far i got 2 mc’s, caption1, and caption 2.

caption1 has the following Actionscript on it:

```auto

onClipEvent (enterFrame) {
      if (_root.x==1) {
            this._alpha = 100;
      } else {
            this._alpha = 0;
      }
}

```

caption2 has:

```auto

onClipEvent (enterFrame) {
      if (_root.x==2) {
            this._alpha = 100;
      } else {
            this._alpha = 0;
      }
}

```

The Actionscript i have on the root timeline is:

```auto

startDrag(_root.caption1, true);
startDrag(_root.caption2, true);

```

Then on the Movieclips that i want the captions to appear, on the first one corresponding to caption1 i got:

```auto

on (rollOver) {
	gotoAndPlay(2);
	_root.x = 1;
}
on (rollOut) {
	gotoAndPlay(42);
	_root.x = 0;
}

```

And caption2:

```auto

on (rollOver) {
	gotoAndPlay(2);
	_root.x = 2;
}
on (rollOut) {
	gotoAndPlay(42);
	_root.x = 0;
}

```

Only the second caption (caption2) appears, but if i remove the actionscript for it on the timeline, the first one appears ?

Thanks,  
Karl
