PDA

View Full Version : Please help: On MouseOver -> Info text on the right


Martijn2k
01-16-2003, 08:35 AM
I've got a little problem:

When the user 'mouses over' a text (at the left), a information text (which contains information about the choices the user can make) should appear at the right side of the screen.

This information text must disappear when you move your mouse to the right side of the screen (when picking a radiobutton).

Can anybody help me on this one?
I'm not quite a Flash hero :)

Link (http://members.home.nl/martijn2k2/test_mouse-over.fla) to my .fla (I'm using Flash MX)

simontheak
01-16-2003, 08:46 AM
How about creating a dynamic text box that you want your information to appear in and name it info. Then on your button, put the following code:

on (rollOver){
_root.info.text="Your description";
}

on (rollOut){
_root.info.text="";
}




Is that what you mean?

Martijn2k
01-16-2003, 09:06 AM
Originally posted by simontheak
How about creating a dynamic text box that you want your information to appear in and name it info. Then on your button, put the following code:

on (rollOver){
_root.info.text="Your description";
}

on (rollOut){
_root.info.text="";
}




Is that what you mean?

So, I must make an object of my text, make a dynamic text box and put this code in it?

3 questions about this:

1. Do you know how to get the area bigger on which the mouse over works? I like an area as big as the whole text box, not as big as the visual text.

2. Do you also know how I can make the dynamic text box non-transparent?

3. Is it possible to put the info text inside the dynamic text box and only show it when the user mouses over the text on the left?

The info text boxes must contain large texts, so it doesn't seem practical to put this all into the code...

simontheak
01-16-2003, 09:26 AM
Originally posted by Martijn2k
3 questions about this:

1. Do you know how to get the area bigger on which the mouse over works? I like an area as big as the whole text box, not as big as the visual text.

If you double click the button and go in to edit mode, then you'll see 4 boxes at the top which all you to change the button's appearance depending where the mouse is. If you put a keyframe in the Hit box then you can draw a shape as big as you like which will be the boundary of the button. Don't worry, you don't actually see the box you draw in your main movie.

2. Do you also know how I can make the dynamic text box non-transparent?
When you select your text box, there should be an option on the properties panel that allows you to add a border or a background to the text box. That should do the trick.

3. Is it possible to put the info text inside the dynamic text box and only show it when the user mouses over the text on the left?
Not really - the best way of doing it is to put the code above on your button. That way (if you name your text box info), Flash will insert the text you want straight into the text box

The info text boxes must contain large texts, so it doesn't seem practical to put this all into the code...
The other option is to load all your text from an external text file. This could be handy if you've got a large amount of text that you're going to need to update regularly