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]
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!
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?