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…