Hover captions—need some help

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;
}
}

You can only drag one mc at a time.
Try this
[AS]var mid = Stage.width/2;
_root.onMouseMove = function() {
if (_root._xmouse<=mid) {
startDrag(_root.captionleft, true);
} else {
startDrag(_root.captionright, true);
}
};
[/AS]

scotty(-:

I don’t think its possible to drag 2 mcs at once.

darn it, i hate it when that happens

I know the feeling;)

You can drag muliple movieclips using this prototype by Senocular :slight_smile:

http://proto.layer51.com/d.aspx?f=845

Thanks for that tip, Voets;)

scotty(-:

Thanks Scotty, but I think because there’s no clear line of left and right in my swf, the dividing the screen in half won’t work—but I can definitely use that other places, and thanks for that script, voets…assuming my dumb *ss can figure that code out! :slight_smile:

Do you guys think I can somehow find the position of the mouse and simply flip the comment bubble movie clip horizontally if it’s over on the right?

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);
}
};