# Hover captions x, y offset being ignored, AS2

**URL:** <https://forum.kirupa.com/t/hover-captions-x-y-offset-being-ignored-as2/288278>\
**Category:** Uncategorized\
**Created:** [May 13, 2009, 5:07pm UTC](https://forum.kirupa.com/t/hover-captions-x-y-offset-being-ignored-as2/288278 "2009-05-13T17:07:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenwen](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jenwen](https://forum.kirupa.com/u/jenwen)\
**Post date:** [May 13, 2009, 5:07pm UTC](https://forum.kirupa.com/t/hover-captions-x-y-offset-being-ignored-as2/288278/1 "2009-05-13T17:07:09Z")

</div>

Hello,

Thanks in advance for anyone who can help me with this issue.  
I’m trying to display hover captions, and I’m using the code I’ve used a million times before to do this, but for some reason in the current project I’m working on my x and y offsets are being ignored. Here is my script:

b14q06.onRollOver = function() {  
captionFN4q06(true, “aetna”, this);  
this.onRollOut = function() {  
captionFN4q06(false);  
};  
};  
b24q06.onRollOver = function() {  
captionFN24q06(true, “cigna”, this);  
this.onRollOut = function() {  
captionFN24q06(false);  
};  
};  
b34q06.onRollOver = function() {  
captionFN34q06(true, “coventry”, this);  
this.onRollOut = function() {  
captionFN34q06(false);  
};  
};  
b44q06.onRollOver = function() {  
captionFN44q06(true, “healthnet”, this);  
this.onRollOut = function() {  
captionFN44q06(false);  
};  
};  
b54q06.onRollOver = function() {  
captionFN54q06(true, “humana”, this);  
this.onRollOut = function() {  
captionFN54q06(false);  
};  
};  
b64q06.onRollOver = function() {  
captionFN64q06(true, “united”, this);  
this.onRollOut = function() {  
captionFN64q06(false);  
};  
};   
b74q06.onRollOver = function() {  
captionFN74q06(true, “wellpoint”, this);  
this.onRollOut = function() {  
captionFN74q06(false);  
};  
};   
captionFN4q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap4q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap4q06.\_width)\>Stage.width) {  
xo = -2-cap4q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap4q06.onEnterFrame = function() {  
cap4q06.\_x = \_root.\_xmouse+xo;  
cap4q06.\_y = \_root.\_ymouse+yo;  
cap4q06.\_visible = true;  
};  
} else {  
delete cap4q06.onEnterFrame;  
cap4q06.\_visible = false;  
}  
};  
captionFN24q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap24q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap24q06.\_width)\>Stage.width) {  
xo = -2-cap24q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap24q06.onEnterFrame = function() {  
cap24q06.\_x = \_root.\_xmouse+xo;  
cap24q06.\_y = \_root.\_ymouse+yo;  
cap24q06.\_visible = true;  
};  
} else {  
delete cap24q06.onEnterFrame;  
cap24q06.\_visible = false;  
}  
};  
captionFN34q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap34q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap34q06.\_width)\>Stage.width) {  
xo = -2-cap34q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap34q06.onEnterFrame = function() {  
cap34q06.\_x = \_root.\_xmouse+xo;  
cap34q06.\_y = \_root.\_ymouse+yo;  
cap34q06.\_visible = true;  
};  
} else {  
delete cap34q06.onEnterFrame;  
cap34q06.\_visible = false;  
}  
};  
captionFN44q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap44q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap44q06.\_width)\>Stage.width) {  
xo = -2-cap44q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap44q06.onEnterFrame = function() {  
cap44q06.\_x = \_root.\_xmouse+xo;  
cap44q06.\_y = \_root.\_ymouse+yo;  
cap44q06.\_visible = true;  
};  
} else {  
delete cap44q06.onEnterFrame;  
cap44q06.\_visible = false;  
}  
};  
captionFN54q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap54q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap54q06.\_width)\>Stage.width) {  
xo = -2-cap54q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap54q06.onEnterFrame = function() {  
cap54q06.\_x = \_root.\_xmouse+xo;  
cap54q06.\_y = \_root.\_ymouse+yo;  
cap54q06.\_visible = true;  
};  
} else {  
delete cap54q06.onEnterFrame;  
cap54q06.\_visible = false;  
}  
};  
captionFN64q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap64q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap64q06.\_width)\>Stage.width) {  
xo = -2-cap64q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap64q06.onEnterFrame = function() {  
cap64q06.\_x = \_root.\_xmouse+xo;  
cap64q06.\_y = \_root.\_ymouse+yo;  
cap64q06.\_visible = true;  
};  
} else {  
delete cap64q06.onEnterFrame;  
cap64q06.\_visible = false;  
}  
};  
captionFN74q06 = function (showCaption, captionText, bName) {  
if (showCaption) {  
\_root.createEmptyMovieClip(“cap74q06”, this.getNextHighestDepth());  
if ((bName.\_width+bName.\_x+cap74q06.\_width)\>Stage.width) {  
xo = -2-cap74q06.\_width;  
yo = -17;  
} else {  
xo = 2;  
yo = -17;  
}  
cap74q06.onEnterFrame = function() {  
cap74q06.\_x = \_root.\_xmouse+xo;  
cap74q06.\_y = \_root.\_ymouse+yo;  
cap74q06.\_visible = true;  
};  
} else {  
delete cap74q06.onEnterFrame;  
cap74q06.\_visible = false;  
}  
};

The hover captions, should be offset from my mouse, but they are showing up quite a bit to the right and above my mouse. The only difference between this movie and others where i’ve used this hover caption code is it’s under a mask. Even when I change the xo, yo values they’re still ignored ☹  
Any help or suggestions is much appreciated!

Jennifer
