# Tooltip trouble

**URL:** <https://forum.kirupa.com/t/tooltip-trouble/217480>\
**Category:** Uncategorized\
**Created:** [February 27, 2007, 11:11am UTC](https://forum.kirupa.com/t/tooltip-trouble/217480 "2007-02-27T11:11:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakka](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yakka](https://forum.kirupa.com/u/yakka)\
**Post date:** [February 27, 2007, 11:11am UTC](https://forum.kirupa.com/t/tooltip-trouble/217480/1 "2007-02-27T11:11:30Z")

</div>

Hi there guys

Thumbnails are loaded dynamicaly

Right I’ve a bit of a problem with my setInterval the tooltip is working but the setInterval function isn’t so the tip doesn’t follow the mouse, the tips just seem to load every time the user mouses over a new thumbnail rather than following the mouse…

```
        /*ToolTip*/
        thumbholder.onRollOver = function(tipOn) {
            tipOn = this.hitTest(_root._xmouse, _root._ymouse, true) ? true : false;
            format = new TextFormat("Praxis LT Semibold", 16, 0x3c1e10);
                if (tipOn) {
                    //this.setInterval(function (_this) {
                    this.createTextField("tip", 100000, 0, 0, 0, 0);
                    this.swapDepths(this.getNextHighestDepth());
                    with (this.tip) {
                        trace("Tooltip: " + this.tooltip);
                        text = this.tooltip;
                        
                        _x = this._xmouse+10;
                        _y = this._ymouse-30;
                        autoSize = "left";
                        background = true;
                        embedFonts = true;
                        selectable = false;
                        backgroundColor = 0xffffff;
                        setTextFormat(format);
                        clearInterval(this.int);
                        }//},20);
                    } else if (!tipOn) {
                    this.tip.removeTextField();
                    //this.tip.clearInterval(this);
            }
        thumbholder.onRollOut = function() {
            this.tip.removeTextField();
            //this.tip.clearInterval(this);
        }
        /*End ToolTip*/

```

Any help guys may well save my life…
