# Depth issue with tooltips and dynamically placed objects

**URL:** <https://forum.kirupa.com/t/depth-issue-with-tooltips-and-dynamically-placed-objects/194798>\
**Category:** Uncategorized\
**Created:** [July 26, 2006, 12:44pm UTC](https://forum.kirupa.com/t/depth-issue-with-tooltips-and-dynamically-placed-objects/194798 "2006-07-26T12:44:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchalker](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bchalker/32/441_2.png) [@bchalker](https://forum.kirupa.com/u/bchalker)\
**Post date:** [July 26, 2006, 12:44pm UTC](https://forum.kirupa.com/t/depth-issue-with-tooltips-and-dynamically-placed-objects/194798/1 "2006-07-26T12:44:14Z")

</div>

I have a set of dots I am placing on a map dynamically (using attachMovie) with an XML file giving the coordinates. I also am using the “hover caption” tutorial (great) to assign a tooltip for each dot.  
\*\*  
Problem:\*\*  
When I rollover the dots, the tooltip appears fine, but it is under the dots, not at the highest level. I have the level set to getNextHighestDepth():

> captionFN = function (showTip, job, town, image) {  
> if (showTip) {  
> \_root.createEmptyMovieClip(“hoverCaption”, \_root.getNextHighestDepth());  
> cap.photoHolder.loadMovie(image)  
> cap.jobName.text = job;  
> cap.townName.text = town;  
> cap.alphaTo(100, .5);  
> …  
> …

and the dots are placed using this code:

> mapXML = new XML();  
> mapXML.ignoreWhite = true;  
> mapXML.onLoad = function(success) {  
> if (success) {  
> dots = this.firstChild.childNodes;  
> for (var i=0; i\<dots.length; i++) {   
> dot = \_root.attachMovie(“mapDot”, “mapDot” + i, i);  
> dot.\_alpha = 60;  
> dot.\_x = dots\*.attributes.xPos;  
> dot.\_y = dots\*.attributes.yPos;  
> …

[Here is the example](http://www.bleedingtree.com/Clients/Elevate/T10/)

Any ideas as to how to have the tooltip site on top of everything?

Thanks 🙂
