Rollover button to get text help!

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:

Check out the Hover Captions tutorial here at kirupa.com. :wink:

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

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…

hoverText._visible = false;

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

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

Hope it helps,
Dave

hey thanks :slight_smile: 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 <–this is what i want to do

thanks :slight_smile:

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

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

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…

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

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 :confused: