# Targeting Issue - Again

**URL:** <https://forum.kirupa.com/t/targeting-issue-again/177814>\
**Category:** flash\
**Created:** [February 5, 2006, 2:51pm UTC](https://forum.kirupa.com/t/targeting-issue-again/177814 "2006-02-05T14:51:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cupaball](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cupaball](https://forum.kirupa.com/u/cupaball)\
**Post date:** [February 5, 2006, 2:51pm UTC](https://forum.kirupa.com/t/targeting-issue-again/177814/1 "2006-02-05T14:51:41Z")

</div>

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.

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

```
