Never Mind anout the targeting issue below,
It seems it is a hover location issue. When the swf is previewed by itself, the capition is in the right location. But when loaded into the main swf, it show at the bottom.
I seem to continue to run into targeting issues.
Can someone help me make this relative?
This is a capition script I got from Kirupa.
b1.onRollOver = function() {
captionFN(true, "Contact Me", this.cap);
this.onRollOut = function() {
captionFN(false);
};
};
captionFN = function (showCaption, captionText, bName) {
if (showCaption) {
_root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth());
cap.desc.text = captionText;
cap._width = 7*cap.desc.text.length;
cap._alpha = 75;
//
if ((bName._width+bName._x+cap._width)>Stage.width) {
xo = -2-cap._width;
yo = -17;
} else {
xo = 2;
yo = -17;
}
hoverCaption.onEnterFrame = function() {
cap._x = _root._xmouse+xo;
cap._y = _root._ymouse+yo;
cap._visible = true;
};
} else {
delete hoverCaption.onEnterFrame;
cap._visible = false;
}
};