# Rollover button to get text help!

**URL:** <https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120>\
**Category:** flash\
**Created:** [September 13, 2004, 1:28pm UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120 "2004-09-13T13:28:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![karma](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@karma](https://forum.kirupa.com/u/karma)\
**Post date:** [September 13, 2004, 1:28pm UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/1 "2004-09-13T13:28:21Z")

</div>

Sorry i am very newb at this, and i dont know where to look for an answer cos im not sure what im doing is called!

Anyway here it goes… all i want to do is rollover a button or box and text comes up next to it! like sort of an information box, or a button and u roll over it and the link name comes up !

Can anyone help me with a link to a basic tutorial? or even name to what im doing…

Sorry for any hassles!:crying:

---

<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:** [September 13, 2004, 1:43pm UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/2 "2004-09-13T13:43:34Z")

</div>

Check out the Hover Captions tutorial here at [kirupa.com](http://www.kirupa.com/). 😉

---

<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:** [September 14, 2004, 12:22am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/3 "2004-09-14T00:22:22Z")

</div>

mm thanks! but i was sort of looking for something that didnt hover… just like solid text that appears on another part of the page

---

<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:** [September 14, 2004, 12:33am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/4 "2004-09-14T00:33:16Z")

</div>

Here’s one solution you could use…

1. Create the text you want to appear at some point, convert it to a movieclip (Control+F8) and move it to where you would like it to appear. Also, give it an instance name in the property inspector, in this example, I’ll call it “hoverText”.
2. Enter the following actionscript in the first frame of your timeline…

```auto

hoverText._visible = false;

```

1. Now add the following code to the button or whatever it is you want to trigger the rollover effect…

```auto

on (rollOver) {
hoverText.visible = true;
}
on (rollOut) {
hoverText.visible = false;
}

```

Hope it helps,  
Dave

---

<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:** [September 14, 2004, 12:53am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/5 "2004-09-14T00:53:38Z")

</div>

hey thanks 🙂 i jus gave it a go… and this is what came up

**Error** Scene=Scene 1, layer=homepage, frame=1:Line 1: Mouse events are permitted only for button instances  
on (rollOver) {

**Error** Scene=Scene 1, layer=homepage, frame=1:Line 4: Mouse events are permitted only for button instances  
on (rollOut) {

?

[http://members.westnet.com.au/karmatron/see.jpg](http://members.westnet.com.au/karmatron/see.jpg) \<–this is what i want to do

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:** [September 14, 2004, 12:58am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/6 "2004-09-14T00:58:48Z")

</div>

mm ok i fixed it but actually adding the script to the button… now its saying this ☹

argh sorry for being so newbie

**Error** Scene=Scene 1, layer=introrollover, frame=1:Line 1: Statement must appear within on/onClipEvent handler  
{

**Error** Scene=Scene 2, layer=homepage, frame=1:Line 2: Statement must appear within on handler  
home\_btn.onRelease = function (){

Total ActionScript Errors: 2 Reported Errors: 2

---

<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:** [September 14, 2004, 1:16am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/7 "2004-09-14T01:16:40Z")

</div>

OK, sorry for my misunderstanding. Try this…

1. For your intro text on the left, create a dynamic textbox by creating a textbox and selecting “dynamic” in the property inspector.
2. In the textfield’s properties, enter “introText” in the “var” field.

Next comes your little circles round the board’s wheel. The reason you got those errors is that you need to convert them to buttons (select them, hit F8, enter a name and select button). Next up…

1. Select one button, open up your actionscript window and type the following…

```auto

on (rollOver) {
_root.introText = "Enter your text for that area here!";
}

```

If it still isn’t working for you at this stage, upload your FLA and I’ll take a look.

Let me know how it goes mate,  
Dave

---

<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:** [September 14, 2004, 2:38am UTC](https://forum.kirupa.com/t/rollover-button-to-get-text-help/64120/8 "2004-09-14T02:38:38Z")

</div>

its ok… um i dont know if i made myself clear tho… what i want to do is rollover the button… and then the “Intro” word within the wheel i want to make appear 😕
