# Hover captions

**URL:** https://forum.kirupa.com/t/hover-captions/7288
**Category:** Uncategorized
**Created:** [October 27, 2002, 5:23pm UTC](https://forum.kirupa.com/t/hover-captions/7288 "2002-10-27T17:23:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fatmammal](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fatmammal](https://forum.kirupa.com/u/fatmammal)
#### Post date: [October 27, 2002, 5:23pm UTC](https://forum.kirupa.com/t/hover-captions/7288/1 "2002-10-27T17:23:54Z")

</div>

I think the ones on herre… are more for flash mx… I was just wondering if anyone had quick basic way to do one in flash 5

---

<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: [October 27, 2002, 10:28pm UTC](https://forum.kirupa.com/t/hover-captions/7288/2 "2002-10-27T22:28:41Z")

</div>

Its basicially the same for Flash 5.

I made an example just for you =)

Lemme explain first:

Basically we have a button, and a movie clip. The mc is where the hover caption is.

So on rollOver of the button, show the MC and make it hover over the button. i did this by assigning the \_x and \_y of the MC = to the mouse’s x,y position =)

Sounds confusing? here is the FLA example i made just for you, =)

just look at it, and you’ll see =) all the code is in the button (in the on(rollOver) event handler.

Hover Caption Example (flash 5)

Hope this helps =) Enjoy.

---

<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: [October 27, 2002, 11:44pm UTC](https://forum.kirupa.com/t/hover-captions/7288/3 "2002-10-27T23:44:31Z")

</div>

It comes up when i go over it… but it doesnt follow around with the cursor when it’s over the red button. It justs pops up…

Compared to the kirupa one

[http://www.kirupa.com/developer/mx/captions.asp](http://www.kirupa.com/developer/mx/captions.asp)

Do you know why?

thanks

---

<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: [October 28, 2002, 3:36am UTC](https://forum.kirupa.com/t/hover-captions/7288/4 "2002-10-28T03:36:19Z")

</div>

ah yes, i didnt make it to follow =)

all you do is right hand click the caption mc, (its kinda hidden but yyou should see the outline…)

and in side there add this code:

* * *

onClipEvent(enterFrame){

this.\_x = \_root.\_xmouse;  
this.\_y = \_root.\_ymouse;

}

* * *

And thats it =) and yay it follows =)

---

<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: [October 28, 2002, 5:32am UTC](https://forum.kirupa.com/t/hover-captions/7288/5 "2002-10-28T05:32:12Z")

</div>

its not working… I have a drag already on this scene… and it’s making the caption a drag and it’s dragging and im not even over the button…

---

<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: [October 28, 2002, 5:37am UTC](https://forum.kirupa.com/t/hover-captions/7288/6 "2002-10-28T05:37:16Z")

</div>

nevermind…

thanks alot

---

<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: [October 28, 2002, 6:48am UTC](https://forum.kirupa.com/t/hover-captions/7288/7 "2002-10-28T06:48:40Z")

</div>

=) not a problem i hope that helped ya =)
