# Tooltip with images

**URL:** <https://forum.kirupa.com/t/tooltip-with-images/112486>\
**Category:** Uncategorized\
**Created:** [June 8, 2004, 9:37am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486 "2004-06-08T09:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeyboy](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@monkeyboy](https://forum.kirupa.com/u/monkeyboy)\
**Post date:** [June 8, 2004, 9:37am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486/1 "2004-06-08T09:37:53Z")

</div>

[font=verdana,arial,helvetica][size=1] [/size][/font] [font=verdana, arial, helvetica][size=2]Hi,

I’m trying to create a tooltip so that when the mouse rollsover a button, an image / movieclip appears and follows the mouse whilst it is over the button.

I’ve seen tutorials but they all show strings instead of images.

Any help / tips would be much appriciated.

TIA

Lel[/size][/font]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 6:34am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486/2 "2004-06-16T06:34:41Z")

</div>

The new one:

```auto

_root.onLoad = function() {
	mc1._visible=false;
}
_root.onEnterFrame = function() {
	mc1._x=_root._xmouse; 
	mc1._y=_root._ymouse
	mc2._x=_root._xmouse; 
	mc2._y=_root._ymouse
	mc3._x=_root._xmouse; 
	mc3._y=_root._ymouse;
}
//correct it and add it to every button like this::
_root.but1.onRollOver = function() {
	mc1._visible=true;
	mc2._visible=false;
	mc3._visible=false;
}
_root.but1.onRollOut = function() {
	mc1._visible=false;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 7:23am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486/3 "2004-06-16T07:23:43Z")

</div>

It’s weird…i understand the script, but i know i can’t create it…it’s like my chinese ☹

---

<div class="post-metadata">

**Author:** ![silencematters](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@silencematters](https://forum.kirupa.com/u/silencematters)\
**Post date:** [August 21, 2004, 3:12am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486/4 "2004-08-21T03:12:59Z")

</div>

this looks good.  
I like this code…  
i understand it,…

But i am trying to make one that follows the mouse on rollover. I have a million rollovers and a million buttons made on one page.  
and each has a small MC that contains the name of the shape that needs to appear when rolled over.  
and suggestions?

---

<div class="post-metadata">

**Author:** ![vijayraj\_bhatt](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vijayraj\_bhatt](https://forum.kirupa.com/u/vijayraj_bhatt)\
**Post date:** [August 21, 2004, 10:01am UTC](https://forum.kirupa.com/t/tooltip-with-images/112486/5 "2004-08-21T10:01:10Z")

</div>

great one
