# Hover captions—need some help

**URL:** <https://forum.kirupa.com/t/hover-captions-need-some-help/101157>\
**Category:** Uncategorized\
**Created:** [February 6, 2004, 4:08pm UTC](https://forum.kirupa.com/t/hover-captions-need-some-help/101157 "2004-02-06T16:08:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alicia](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@alicia](https://forum.kirupa.com/u/alicia)\
**Post date:** [February 6, 2004, 4:08pm UTC](https://forum.kirupa.com/t/hover-captions-need-some-help/101157/1 "2004-02-06T16:08:12Z")

</div>

WHEN VIEWING THE SWF, ROLL OVER THE COUNTIES IN THE UPPER LEFT CORNER AND THE ONE IN THE UPPER RIGHT CORNER…ONLY THE ONE IN THE UPPER RIGHT WORKS LIKE IT SHOULD.

The buttons use two different hover caption movie clips, one for buttons on the left, and one for buttons on the right. In the first frame of the root I have these actions:  
startDrag(\_root.captionleft, true);  
startDrag(\_root.captionright, true);

And to make the captions visible only when I roll over a button, I’ve attached this action:  
onClipEvent (enterFrame) {  
if (\_root.x == 1) {  
this.\_alpha = 50;  
} else {  
this.\_alpha = 0;  
}  
}

---

<div class="post-metadata">

**Author:** ![aaron353](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@aaron353](https://forum.kirupa.com/u/aaron353)\
**Post date:** [August 3, 2004, 5:20am UTC](https://forum.kirupa.com/t/hover-captions-need-some-help/101157/2 "2004-08-03T05:20:06Z")

</div>

how would you modify this to have a left right and middle section or specify the width and heigth of a movie or area and then say what width is each?

> var mid = Stage.width/2;  
> \_root.onMouseMove = function() {  
> if (\_root.\_xmouse\<=mid) {  
> startDrag(\_root.captionleft, true);  
> } else {  
> startDrag(\_root.captionright, true);  
> }  
> };
